Submission details
Task:Piva and Glasses
Sender:banghalq
Submission time:2025-10-27 16:52:58 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.07 sdetails
#20.04 sdetails
#30.07 sdetails
#40.06 sdetails
#50.07 sdetails
#60.07 sdetails
#70.07 sdetails
#80.07 sdetails
#90.04 sdetails
#100.07 sdetails
#110.07 sdetails
#120.07 sdetails
#130.07 sdetails
#140.07 sdetails
#150.04 sdetails
#160.07 sdetails
#170.07 sdetails
#180.07 sdetails
#190.04 sdetails
#200.07 sdetails
#210.07 sdetails
#220.04 sdetails
#230.07 sdetails
#240.07 sdetails
#250.07 sdetails
#260.07 sdetails
#270.07 sdetails
#280.07 sdetails
#290.04 sdetails
#300.06 sdetails

Code

import math

word = input()

alphabet = {}
alphabet['a'] = 0
alphabet['b'] = 0
alphabet['c'] = 0
alphabet['d'] = 0
alphabet['e'] = 0
alphabet['f'] = 0
alphabet['g'] = 0
alphabet['h'] = 0
alphabet['i'] = 0
alphabet['j'] = 0
alphabet['k'] = 0
alphabet['l'] = 0
alphabet['m'] = 0
alphabet['n'] = 0
alphabet['o'] = 0
alphabet['p'] = 0
alphabet['q'] = 0
alphabet['r'] = 0
alphabet['s'] = 0
alphabet['t'] = 0
alphabet['u'] = 0
alphabet['v'] = 0
alphabet['w'] = 0
alphabet['x'] = 0
alphabet['y'] = 0
alphabet['z'] = 0
for c in word:
    alphabet[c] += 1
res = math.factorial(len(word))/(math.factorial(alphabet['a'])*
                                 math.factorial(alphabet['b'])*
                                 math.factorial(alphabet['c'])*
                                 math.factorial(alphabet['d'])*
                                 math.factorial(alphabet['e'])*
                                 math.factorial(alphabet['f'])*
                                 math.factorial(alphabet['g'])*
                                 math.factorial(alphabet['h'])*
                                 math.factorial(alphabet['i'])*
                                 math.factorial(alphabet['j'])*
                                 math.factorial(alphabet['k'])*
                                 math.factorial(alphabet['l'])*
                                 math.factorial(alphabet['m'])*
                                 math.factorial(alphabet['n'])*
                                 math.factorial(alphabet['o'])*
                                 math.factorial(alphabet['p'])*
                                 math.factorial(alphabet['q'])*
                                 math.factorial(alphabet['r'])*
                                 math.factorial(alphabet['q'])*
                                 math.factorial(alphabet['s'])*
                                 math.factorial(alphabet['t'])*
                                 math.factorial(alphabet['u'])*
                                 math.factorial(alphabet['v'])*
                                 math.factorial(alphabet['w'])*
                                 math.factorial(alphabet['x'])*
                                 math.factorial(alphabet['y'])*
                                 math.factorial(alphabet['z']))
print(int(res))

Test details

Test 1

Verdict:

input
mynbiqpmzjplsgqejeydtzirwztejd...

correct output
253955382019371746305129921157...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 2

Verdict:

input
szycidpyopumzgdpamntyyawoixzhs...

correct output
551108061158008078173415475169...

user output
136683546914188519056296962811...
Truncated

Feedback: Incorrect character on line 1 col 1: expected "551108061158...", got "136683546914..."

Test 3

Verdict:

input
bcclfxzvjitgtbsvfnumzxqlroqiba...

correct output
305421613370742845795015587427...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 4

Verdict:

input
sreltpusctapirhgwprrpmuehueqmx...

correct output
140037512077395979638061040922...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 5

Verdict:

input
jdxmpeccamrjzybhqrliyfdigauziz...

correct output
348940989405062643281218932084...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 6

Verdict:

input
ixlzwxuqaoyhubfdlphmrdshaxgnif...

correct output
523444502687933447128799316928...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 7

Verdict:

input
scpyibaevspyxlkyaipzgxnrrvdgsr...

correct output
804291277421765770488004812470...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 8

Verdict:

input
emubcrdlsbqgbcnnchcrnbsdhuusbs...

correct output
539368193886087805857792545271...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 9

Verdict:

input
lmegwbcehzqgmuaopompsgmcphyawi...

correct output
665407925762077489110285862326...

user output
166698714767235236513830324670...
Truncated

Feedback: Incorrect character on line 1 col 1: expected "665407925762...", got "166698714767..."

Test 10

Verdict:

input
tliefvakqotckrtwbxmfwoxnffhbde...

correct output
129648761524634643411433104526...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 11

Verdict:

input
bnpsagopiuzfbqpkchxlbnetlmnjvi...

correct output
254352633815523810681607015996...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 12

Verdict:

input
ryooqsgfzqputzfdojecrzwubtmoux...

correct output
212452622895141284453529611450...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 13

Verdict:

input
ivqvlemalpiuzowthravteolfkgbsg...

correct output
732490220763260338635928880269...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 14

Verdict:

input
jvvzfuhvehuxfecrgxjanevtaieczz...

correct output
518420681110543932377602451247...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 15

Verdict:

input
twyuqhixijxcvojovmmydihklzilzu...

correct output
364802587715444496585869643172...

user output
304002156429537075288829052881...
Truncated

Feedback: Incorrect character on line 1 col 2: expected "364802587715...", got "304002156429..."

Test 16

Verdict:

input
gaqxbfhabzvewlhdkowlimilhglzkh...

correct output
476873862461844332247115208362...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 17

Verdict:

input
ppjnhoanvwihuhajjkvextjazhtiae...

correct output
767343312313426142222306561536...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 18

Verdict:

input
nzjljfywwrvidahmxniqzkuvxmerbe...

correct output
910297874112935296564114827261...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 19

Verdict:

input
dvokhgpupfpjoigiwdkqvyzfzhfhgx...

correct output
188739064612275094017617681593...

user output
374482271056101402282039056048...
Truncated

Feedback: Incorrect character on line 1 col 1: expected "188739064612...", got "374482271056..."

Test 20

Verdict:

input
bzqdqgmlqjsetidinkidykjastgcgd...

correct output
232461691179008854504057599827...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 21

Verdict:

input
xvzyeivudksfanncdekpsonggkuvkk...

correct output
285713951274252866113989732127...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 22

Verdict:

input
nwnujpgzpzqfqqhzaalsncezyhhwbn...

correct output
731682739693843565903082665678...

user output
145175146764651492628811474874...
Truncated

Feedback: Incorrect character on line 1 col 1: expected "731682739693...", got "145175146764..."

Test 23

Verdict:

input
ehatofwdxulzchibktfrvxnwbsasij...

correct output
450074573205377125973875496260...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 24

Verdict:

input
yjcasjnmqlexgioahtoadcwpnaquxn...

correct output
596345160784615487534168536470...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 25

Verdict:

input
msfgfgfvvcwyezwjxyaooxudaqfpxo...

correct output
717476109909956801533326919144...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 26

Verdict:

input
yagjupbyibjsndsdsvxgqztkfrlqpq...

correct output
235583496947932628535470171742...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 27

Verdict:

input
gvgntrbeyypbxvtqfunhxnwgzwavhe...

correct output
111088422779874450993038450753...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 28

Verdict:

input
pwijgccirkilmfhhpcxusuctnynxbv...

correct output
446346258489784916012992902633...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...

Test 29

Verdict:

input
xertwfheuoynggemfetgganhcdnkwe...

correct output
283497304854230709850344401214...

user output
236247754045192256768524152508...
Truncated

Feedback: Incorrect character on line 1 col 2: expected "283497304854...", got "236247754045..."

Test 30

Verdict:

input
clttjcqlmnabdouhzlcpktrnxgofhn...

correct output
218953374961690394340463245163...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 60, in <module>
    math.f...