| Task: | Piva and Glasses |
| Sender: | aalto26hm_020 |
| Submission time: | 2026-10-26 17:02:30 +0200 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.07 s | details |
| #2 | WRONG ANSWER | 0.04 s | details |
| #3 | RUNTIME ERROR | 0.07 s | details |
| #4 | RUNTIME ERROR | 0.06 s | details |
| #5 | RUNTIME ERROR | 0.06 s | details |
| #6 | RUNTIME ERROR | 0.07 s | details |
| #7 | RUNTIME ERROR | 0.07 s | details |
| #8 | RUNTIME ERROR | 0.06 s | details |
| #9 | WRONG ANSWER | 0.04 s | details |
| #10 | RUNTIME ERROR | 0.06 s | details |
| #11 | RUNTIME ERROR | 0.07 s | details |
| #12 | RUNTIME ERROR | 0.06 s | details |
| #13 | RUNTIME ERROR | 0.06 s | details |
| #14 | RUNTIME ERROR | 0.06 s | details |
| #15 | WRONG ANSWER | 0.04 s | details |
| #16 | RUNTIME ERROR | 0.07 s | details |
| #17 | RUNTIME ERROR | 0.06 s | details |
| #18 | RUNTIME ERROR | 0.06 s | details |
| #19 | WRONG ANSWER | 0.04 s | details |
| #20 | RUNTIME ERROR | 0.07 s | details |
| #21 | RUNTIME ERROR | 0.07 s | details |
| #22 | WRONG ANSWER | 0.04 s | details |
| #23 | RUNTIME ERROR | 0.07 s | details |
| #24 | RUNTIME ERROR | 0.07 s | details |
| #25 | RUNTIME ERROR | 0.07 s | details |
| #26 | RUNTIME ERROR | 0.06 s | details |
| #27 | RUNTIME ERROR | 0.07 s | details |
| #28 | RUNTIME ERROR | 0.07 s | details |
| #29 | WRONG ANSWER | 0.04 s | details |
| #30 | RUNTIME ERROR | 0.06 s | details |
Code
from math import factorial
word = input()
d = {}
for c in word:
if c in d:
d[c] = d[c] + 1
else:
d[c] = 1
div = 1
sz = 0
for _, cnt in d.items():
sz += cnt
div *= factorial(cnt)
print(cnt, factorial(cnt), div)
print(int(factorial(len(word)) / div))
Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| mynbiqpmzjplsgqejeydtzirwztejd... |
| correct output |
|---|
| 253955382019371746305129921157... |
| user output |
|---|
| 32 263130836933693530167218012... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 2
Verdict: WRONG ANSWER
| input |
|---|
| szycidpyopumzgdpamntyyawoixzhs... |
| correct output |
|---|
| 551108061158008078173415475169... |
| user output |
|---|
| 7 5040 5040 4 24 120960 9 362880 43893964800 2 2 87787929600 2 2 175575859200 ... |
Feedback: Output is longer than expected
Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| bcclfxzvjitgtbsvfnumzxqlroqiba... |
| correct output |
|---|
| 305421613370742845795015587427... |
| user output |
|---|
| 36 371993326789901217467999448... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 4
Verdict: RUNTIME ERROR
| input |
|---|
| sreltpusctapirhgwprrpmuehueqmx... |
| correct output |
|---|
| 140037512077395979638061040922... |
| user output |
|---|
| 16 20922789888000 209227898880... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 5
Verdict: RUNTIME ERROR
| input |
|---|
| jdxmpeccamrjzybhqrliyfdigauziz... |
| correct output |
|---|
| 348940989405062643281218932084... |
| user output |
|---|
| 17 355687428096000 35568742809... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 6
Verdict: RUNTIME ERROR
| input |
|---|
| ixlzwxuqaoyhubfdlphmrdshaxgnif... |
| correct output |
|---|
| 523444502687933447128799316928... |
| user output |
|---|
| 25 15511210043330985984000000 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 7
Verdict: RUNTIME ERROR
| input |
|---|
| scpyibaevspyxlkyaipzgxnrrvdgsr... |
| correct output |
|---|
| 804291277421765770488004812470... |
| user output |
|---|
| 29 884176199373970195454361600... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 8
Verdict: RUNTIME ERROR
| input |
|---|
| emubcrdlsbqgbcnnchcrnbsdhuusbs... |
| correct output |
|---|
| 539368193886087805857792545271... |
| user output |
|---|
| 14 87178291200 87178291200 14 87178291200 760005445655199... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 9
Verdict: WRONG ANSWER
| input |
|---|
| lmegwbcehzqgmuaopompsgmcphyawi... |
| correct output |
|---|
| 665407925762077489110285862326... |
| user output |
|---|
| 9 362880 362880 13 6227020800 2259661307904000 12 479001600 10823813819441086... |
Feedback: Output is longer than expected
Test 10
Verdict: RUNTIME ERROR
| input |
|---|
| tliefvakqotckrtwbxmfwoxnffhbde... |
| correct output |
|---|
| 129648761524634643411433104526... |
| user output |
|---|
| 25 15511210043330985984000000 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 11
Verdict: RUNTIME ERROR
| input |
|---|
| bnpsagopiuzfbqpkchxlbnetlmnjvi... |
| correct output |
|---|
| 254352633815523810681607015996... |
| user output |
|---|
| 28 304888344611713860501504000... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 12
Verdict: RUNTIME ERROR
| input |
|---|
| ryooqsgfzqputzfdojecrzwubtmoux... |
| correct output |
|---|
| 212452622895141284453529611450... |
| user output |
|---|
| 11 39916800 39916800 17 355687428096000 14197903929... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 13
Verdict: RUNTIME ERROR
| input |
|---|
| ivqvlemalpiuzowthravteolfkgbsg... |
| correct output |
|---|
| 732490220763260338635928880269... |
| user output |
|---|
| 21 51090942171709440000 510909... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 14
Verdict: RUNTIME ERROR
| input |
|---|
| jvvzfuhvehuxfecrgxjanevtaieczz... |
| correct output |
|---|
| 518420681110543932377602451247... |
| user output |
|---|
| 13 6227020800 6227020800 10 3628800 22596613079040000 11 39916800 901984484953423872... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 15
Verdict: WRONG ANSWER
| input |
|---|
| twyuqhixijxcvojovmmydihklzilzu... |
| correct output |
|---|
| 364802587715444496585869643172... |
| user output |
|---|
| 5 120 120 1 1 120 2 2 240 7 5040 1209600 5 120 145152000 ... |
Feedback: Output is longer than expected
Test 16
Verdict: RUNTIME ERROR
| input |
|---|
| gaqxbfhabzvewlhdkowlimilhglzkh... |
| correct output |
|---|
| 476873862461844332247115208362... |
| user output |
|---|
| 26 403291461126605635584000000... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 17
Verdict: RUNTIME ERROR
| input |
|---|
| ppjnhoanvwihuhajjkvextjazhtiae... |
| correct output |
|---|
| 767343312313426142222306561536... |
| user output |
|---|
| 17 355687428096000 35568742809... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 18
Verdict: RUNTIME ERROR
| input |
|---|
| nzjljfywwrvidahmxniqzkuvxmerbe... |
| correct output |
|---|
| 910297874112935296564114827261... |
| user output |
|---|
| 22 1124000727777607680000 1124... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 19
Verdict: WRONG ANSWER
| input |
|---|
| dvokhgpupfpjoigiwdkqvyzfzhfhgx... |
| correct output |
|---|
| 188739064612275094017617681593... |
| user output |
|---|
| 5 120 120 8 40320 4838400 3 6 29030400 6 720 20901888000 6 720 15049359360000 ... |
Feedback: Output is longer than expected
Test 20
Verdict: RUNTIME ERROR
| input |
|---|
| bzqdqgmlqjsetidinkidykjastgcgd... |
| correct output |
|---|
| 232461691179008854504057599827... |
| user output |
|---|
| 26 403291461126605635584000000... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 21
Verdict: RUNTIME ERROR
| input |
|---|
| xvzyeivudksfanncdekpsonggkuvkk... |
| correct output |
|---|
| 285713951274252866113989732127... |
| user output |
|---|
| 44 265827157478844876804362581... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 22
Verdict: WRONG ANSWER
| input |
|---|
| nwnujpgzpzqfqqhzaalsncezyhhwbn... |
| correct output |
|---|
| 731682739693843565903082665678... |
| user output |
|---|
| 10 3628800 3628800 5 120 435456000 3 6 2612736000 5 120 313528320000 11 39916800 125150472437760000... |
Feedback: Output is longer than expected
Test 23
Verdict: RUNTIME ERROR
| input |
|---|
| ehatofwdxulzchibktfrvxnwbsasij... |
| correct output |
|---|
| 450074573205377125973875496260... |
| user output |
|---|
| 35 103331479663861449296666513... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 24
Verdict: RUNTIME ERROR
| input |
|---|
| yjcasjnmqlexgioahtoadcwpnaquxn... |
| correct output |
|---|
| 596345160784615487534168536470... |
| user output |
|---|
| 41 334525266131638071081700620... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 25
Verdict: RUNTIME ERROR
| input |
|---|
| msfgfgfvvcwyezwjxyaooxudaqfpxo... |
| correct output |
|---|
| 717476109909956801533326919144... |
| user output |
|---|
| 27 108888694504183521607680000... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 26
Verdict: RUNTIME ERROR
| input |
|---|
| yagjupbyibjsndsdsvxgqztkfrlqpq... |
| correct output |
|---|
| 235583496947932628535470171742... |
| user output |
|---|
| 12 479001600 479001600 10 3628800 1738201006080000 11 39916800 693834219194941440... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 27
Verdict: RUNTIME ERROR
| input |
|---|
| gvgntrbeyypbxvtqfunhxnwgzwavhe... |
| correct output |
|---|
| 111088422779874450993038450753... |
| user output |
|---|
| 30 265252859812191058636308480... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 28
Verdict: RUNTIME ERROR
| input |
|---|
| pwijgccirkilmfhhpcxusuctnynxbv... |
| correct output |
|---|
| 446346258489784916012992902633... |
| user output |
|---|
| 36 371993326789901217467999448... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a floatTest 29
Verdict: WRONG ANSWER
| input |
|---|
| xertwfheuoynggemfetgganhcdnkwe... |
| correct output |
|---|
| 283497304854230709850344401214... |
| user output |
|---|
| 5 120 120 7 5040 604800 4 24 14515200 3 6 87091200 5 120 10450944000 ... |
Feedback: Output is longer than expected
Test 30
Verdict: RUNTIME ERROR
| input |
|---|
| clttjcqlmnabdouhzlcpktrnxgofhn... |
| correct output |
|---|
| 218953374961690394340463245163... |
| user output |
|---|
| 18 6402373705728000 6402373705... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 20, in <module>
print(int(factorial(len(word)) / div))
OverflowError: integer division result too large for a float