Task: | Piva and Glasses |
Sender: | paulschulte |
Submission time: | 2024-10-28 16:32:51 +0200 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.03 s | details |
#2 | ACCEPTED | 0.03 s | details |
#3 | ACCEPTED | 0.03 s | details |
#4 | ACCEPTED | 0.03 s | details |
#5 | ACCEPTED | 0.03 s | details |
#6 | ACCEPTED | 0.03 s | details |
#7 | ACCEPTED | 0.03 s | details |
#8 | ACCEPTED | 0.03 s | details |
#9 | ACCEPTED | 0.03 s | details |
#10 | ACCEPTED | 0.03 s | details |
#11 | ACCEPTED | 0.03 s | details |
#12 | ACCEPTED | 0.03 s | details |
#13 | ACCEPTED | 0.03 s | details |
#14 | ACCEPTED | 0.03 s | details |
#15 | ACCEPTED | 0.03 s | details |
#16 | ACCEPTED | 0.03 s | details |
#17 | ACCEPTED | 0.03 s | details |
#18 | ACCEPTED | 0.03 s | details |
#19 | ACCEPTED | 0.03 s | details |
#20 | ACCEPTED | 0.03 s | details |
#21 | ACCEPTED | 0.03 s | details |
#22 | ACCEPTED | 0.03 s | details |
#23 | ACCEPTED | 0.03 s | details |
#24 | ACCEPTED | 0.03 s | details |
#25 | ACCEPTED | 0.03 s | details |
#26 | ACCEPTED | 0.03 s | details |
#27 | ACCEPTED | 0.03 s | details |
#28 | ACCEPTED | 0.03 s | details |
#29 | ACCEPTED | 0.03 s | details |
#30 | ACCEPTED | 0.03 s | details |
Code
s = input() import string d = dict.fromkeys(string.ascii_lowercase, 0) for c in s: d[c] +=1 import math res = math.factorial(len(s)) teilen = 1 for c in d: if d[c] != 0: teilen*= math.factorial(d[c]) res = res // teilen print(res)
Test details
Test 1
Verdict: ACCEPTED
input |
---|
mynbiqpmzjplsgqejeydtzirwztejd... |
correct output |
---|
253955382019371746305129921157... |
user output |
---|
253955382019371746305129921157... Truncated |
Test 2
Verdict: ACCEPTED
input |
---|
szycidpyopumzgdpamntyyawoixzhs... |
correct output |
---|
551108061158008078173415475169... |
user output |
---|
551108061158008078173415475169... Truncated |
Test 3
Verdict: ACCEPTED
input |
---|
bcclfxzvjitgtbsvfnumzxqlroqiba... |
correct output |
---|
305421613370742845795015587427... |
user output |
---|
305421613370742845795015587427... Truncated |
Test 4
Verdict: ACCEPTED
input |
---|
sreltpusctapirhgwprrpmuehueqmx... |
correct output |
---|
140037512077395979638061040922... |
user output |
---|
140037512077395979638061040922... Truncated |
Test 5
Verdict: ACCEPTED
input |
---|
jdxmpeccamrjzybhqrliyfdigauziz... |
correct output |
---|
348940989405062643281218932084... |
user output |
---|
348940989405062643281218932084... Truncated |
Test 6
Verdict: ACCEPTED
input |
---|
ixlzwxuqaoyhubfdlphmrdshaxgnif... |
correct output |
---|
523444502687933447128799316928... |
user output |
---|
523444502687933447128799316928... Truncated |
Test 7
Verdict: ACCEPTED
input |
---|
scpyibaevspyxlkyaipzgxnrrvdgsr... |
correct output |
---|
804291277421765770488004812470... |
user output |
---|
804291277421765770488004812470... Truncated |
Test 8
Verdict: ACCEPTED
input |
---|
emubcrdlsbqgbcnnchcrnbsdhuusbs... |
correct output |
---|
539368193886087805857792545271... |
user output |
---|
539368193886087805857792545271... Truncated |
Test 9
Verdict: ACCEPTED
input |
---|
lmegwbcehzqgmuaopompsgmcphyawi... |
correct output |
---|
665407925762077489110285862326... |
user output |
---|
665407925762077489110285862326... Truncated |
Test 10
Verdict: ACCEPTED
input |
---|
tliefvakqotckrtwbxmfwoxnffhbde... |
correct output |
---|
129648761524634643411433104526... |
user output |
---|
129648761524634643411433104526... Truncated |
Test 11
Verdict: ACCEPTED
input |
---|
bnpsagopiuzfbqpkchxlbnetlmnjvi... |
correct output |
---|
254352633815523810681607015996... |
user output |
---|
254352633815523810681607015996... Truncated |
Test 12
Verdict: ACCEPTED
input |
---|
ryooqsgfzqputzfdojecrzwubtmoux... |
correct output |
---|
212452622895141284453529611450... |
user output |
---|
212452622895141284453529611450... Truncated |
Test 13
Verdict: ACCEPTED
input |
---|
ivqvlemalpiuzowthravteolfkgbsg... |
correct output |
---|
732490220763260338635928880269... |
user output |
---|
732490220763260338635928880269... Truncated |
Test 14
Verdict: ACCEPTED
input |
---|
jvvzfuhvehuxfecrgxjanevtaieczz... |
correct output |
---|
518420681110543932377602451247... |
user output |
---|
518420681110543932377602451247... Truncated |
Test 15
Verdict: ACCEPTED
input |
---|
twyuqhixijxcvojovmmydihklzilzu... |
correct output |
---|
364802587715444496585869643172... |
user output |
---|
364802587715444496585869643172... Truncated |
Test 16
Verdict: ACCEPTED
input |
---|
gaqxbfhabzvewlhdkowlimilhglzkh... |
correct output |
---|
476873862461844332247115208362... |
user output |
---|
476873862461844332247115208362... Truncated |
Test 17
Verdict: ACCEPTED
input |
---|
ppjnhoanvwihuhajjkvextjazhtiae... |
correct output |
---|
767343312313426142222306561536... |
user output |
---|
767343312313426142222306561536... Truncated |
Test 18
Verdict: ACCEPTED
input |
---|
nzjljfywwrvidahmxniqzkuvxmerbe... |
correct output |
---|
910297874112935296564114827261... |
user output |
---|
910297874112935296564114827261... Truncated |
Test 19
Verdict: ACCEPTED
input |
---|
dvokhgpupfpjoigiwdkqvyzfzhfhgx... |
correct output |
---|
188739064612275094017617681593... |
user output |
---|
188739064612275094017617681593... Truncated |
Test 20
Verdict: ACCEPTED
input |
---|
bzqdqgmlqjsetidinkidykjastgcgd... |
correct output |
---|
232461691179008854504057599827... |
user output |
---|
232461691179008854504057599827... Truncated |
Test 21
Verdict: ACCEPTED
input |
---|
xvzyeivudksfanncdekpsonggkuvkk... |
correct output |
---|
285713951274252866113989732127... |
user output |
---|
285713951274252866113989732127... Truncated |
Test 22
Verdict: ACCEPTED
input |
---|
nwnujpgzpzqfqqhzaalsncezyhhwbn... |
correct output |
---|
731682739693843565903082665678... |
user output |
---|
731682739693843565903082665678... Truncated |
Test 23
Verdict: ACCEPTED
input |
---|
ehatofwdxulzchibktfrvxnwbsasij... |
correct output |
---|
450074573205377125973875496260... |
user output |
---|
450074573205377125973875496260... Truncated |
Test 24
Verdict: ACCEPTED
input |
---|
yjcasjnmqlexgioahtoadcwpnaquxn... |
correct output |
---|
596345160784615487534168536470... |
user output |
---|
596345160784615487534168536470... Truncated |
Test 25
Verdict: ACCEPTED
input |
---|
msfgfgfvvcwyezwjxyaooxudaqfpxo... |
correct output |
---|
717476109909956801533326919144... |
user output |
---|
717476109909956801533326919144... Truncated |
Test 26
Verdict: ACCEPTED
input |
---|
yagjupbyibjsndsdsvxgqztkfrlqpq... |
correct output |
---|
235583496947932628535470171742... |
user output |
---|
235583496947932628535470171742... Truncated |
Test 27
Verdict: ACCEPTED
input |
---|
gvgntrbeyypbxvtqfunhxnwgzwavhe... |
correct output |
---|
111088422779874450993038450753... |
user output |
---|
111088422779874450993038450753... Truncated |
Test 28
Verdict: ACCEPTED
input |
---|
pwijgccirkilmfhhpcxusuctnynxbv... |
correct output |
---|
446346258489784916012992902633... |
user output |
---|
446346258489784916012992902633... Truncated |
Test 29
Verdict: ACCEPTED
input |
---|
xertwfheuoynggemfetgganhcdnkwe... |
correct output |
---|
283497304854230709850344401214... |
user output |
---|
283497304854230709850344401214... Truncated |
Test 30
Verdict: ACCEPTED
input |
---|
clttjcqlmnabdouhzlcpktrnxgofhn... |
correct output |
---|
218953374961690394340463245163... |
user output |
---|
218953374961690394340463245163... Truncated |