Submission details
Task:Piva and Glasses
Sender:aalto26hm_018
Submission time:2026-10-26 16:42:07 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.04 sdetails
#150.04 sdetails
#160.04 sdetails
#170.04 sdetails
#180.04 sdetails
#190.04 sdetails
#200.04 sdetails
#210.04 sdetails
#220.04 sdetails
#230.04 sdetails
#240.04 sdetails
#250.04 sdetails
#260.04 sdetails
#270.04 sdetails
#280.04 sdetails
#290.04 sdetails
#300.04 sdetails

Code

letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
letter_counts = [0 for i in letters]

string = input()

for c in string:
    letter_counts[ord(c) - ord('a')] += 1

different_letters = 0
for a in letter_counts:
    if a != 0:
        different_letters += 1

prod = 1
for i in range(len(string), len(string) - different_letters+1, -1):
    prod *= i

print(prod)

Test details

Test 1

Verdict:

input
mynbiqpmzjplsgqejeydtzirwztejd...

correct output
253955382019371746305129921157...

user output
187645339741532153711834289835...

Feedback: Incorrect character on line 1 col 1: expected "253955382019...", got "187645339741..."

Test 2

Verdict:

input
szycidpyopumzgdpamntyyawoixzhs...

correct output
551108061158008078173415475169...

user output
271972636678600366215983931555...

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

Test 3

Verdict:

input
bcclfxzvjitgtbsvfnumzxqlroqiba...

correct output
305421613370742845795015587427...

user output
431876874566850412095842155619...

Feedback: Incorrect character on line 1 col 1: expected "305421613370...", got "431876874566..."

Test 4

Verdict:

input
sreltpusctapirhgwprrpmuehueqmx...

correct output
140037512077395979638061040922...

user output
135503450024278301219130681809...

Feedback: Incorrect character on line 1 col 2: expected "140037512077...", got "135503450024..."

Test 5

Verdict:

input
jdxmpeccamrjzybhqrliyfdigauziz...

correct output
348940989405062643281218932084...

user output
109107564444766488848474280019...

Feedback: Incorrect character on line 1 col 1: expected "348940989405...", got "109107564444..."

Test 6

Verdict:

input
ixlzwxuqaoyhubfdlphmrdshaxgnif...

correct output
523444502687933447128799316928...

user output
819667820510003965457358247874...

Feedback: Incorrect character on line 1 col 1: expected "523444502687...", got "819667820510..."

Test 7

Verdict:

input
scpyibaevspyxlkyaipzgxnrrvdgsr...

correct output
804291277421765770488004812470...

user output
389379327205168950697636112888...

Feedback: Incorrect character on line 1 col 1: expected "804291277421...", got "389379327205..."

Test 8

Verdict:

input
emubcrdlsbqgbcnnchcrnbsdhuusbs...

correct output
539368193886087805857792545271...

user output
422660291063306861949022655208...

Feedback: Incorrect character on line 1 col 1: expected "539368193886...", got "422660291063..."

Test 9

Verdict:

input
lmegwbcehzqgmuaopompsgmcphyawi...

correct output
665407925762077489110285862326...

user output
401810705168803161259841038793...

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

Test 10

Verdict:

input
tliefvakqotckrtwbxmfwoxnffhbde...

correct output
129648761524634643411433104526...

user output
434718017352747867367011218305...

Feedback: Incorrect character on line 1 col 1: expected "129648761524...", got "434718017352..."

Test 11

Verdict:

input
bnpsagopiuzfbqpkchxlbnetlmnjvi...

correct output
254352633815523810681607015996...

user output
937433349177053686192051070795...

Feedback: Incorrect character on line 1 col 1: expected "254352633815...", got "937433349177..."

Test 12

Verdict:

input
ryooqsgfzqputzfdojecrzwubtmoux...

correct output
212452622895141284453529611450...

user output
238275194065691907035613129215...

Feedback: Incorrect character on line 1 col 2: expected "212452622895...", got "238275194065..."

Test 13

Verdict:

input
ivqvlemalpiuzowthravteolfkgbsg...

correct output
732490220763260338635928880269...

user output
781991158594667734166988888721...

Feedback: Incorrect character on line 1 col 2: expected "732490220763...", got "781991158594..."

Test 14

Verdict:

input
jvvzfuhvehuxfecrgxjanevtaieczz...

correct output
518420681110543932377602451247...

user output
130756780546903416253562135973...

Feedback: Incorrect character on line 1 col 1: expected "518420681110...", got "130756780546..."

Test 15

Verdict:

input
twyuqhixijxcvojovmmydihklzilzu...

correct output
364802587715444496585869643172...

user output
655565810251072352222119213037...

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

Test 16

Verdict:

input
gaqxbfhabzvewlhdkowlimilhglzkh...

correct output
476873862461844332247115208362...

user output
558558081184117154122799318505...

Feedback: Incorrect character on line 1 col 1: expected "476873862461...", got "558558081184..."

Test 17

Verdict:

input
ppjnhoanvwihuhajjkvextjazhtiae...

correct output
767343312313426142222306561536...

user output
750187967829043105954227728342...

Feedback: Incorrect character on line 1 col 2: expected "767343312313...", got "750187967829..."

Test 18

Verdict:

input
nzjljfywwrvidahmxniqzkuvxmerbe...

correct output
910297874112935296564114827261...

user output
915187354672170337687845420614...

Feedback: Incorrect character on line 1 col 3: expected "910297874112...", got "915187354672..."

Test 19

Verdict:

input
dvokhgpupfpjoigiwdkqvyzfzhfhgx...

correct output
188739064612275094017617681593...

user output
623559416168617757115495635143...

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

Test 20

Verdict:

input
bzqdqgmlqjsetidinkidykjastgcgd...

correct output
232461691179008854504057599827...

user output
698236244980994446552588857266...

Feedback: Incorrect character on line 1 col 1: expected "232461691179...", got "698236244980..."

Test 21

Verdict:

input
xvzyeivudksfanncdekpsonggkuvkk...

correct output
285713951274252866113989732127...

user output
111442381339210396586236091603...

Feedback: Incorrect character on line 1 col 1: expected "285713951274...", got "111442381339..."

Test 22

Verdict:

input
nwnujpgzpzqfqqhzaalsncezyhhwbn...

correct output
731682739693843565903082665678...

user output
769160721514042730700131186683...

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

Test 23

Verdict:

input
ehatofwdxulzchibktfrvxnwbsasij...

correct output
450074573205377125973875496260...

user output
466652201487781516071313722654...

Feedback: Incorrect character on line 1 col 2: expected "450074573205...", got "466652201487..."

Test 24

Verdict:

input
yjcasjnmqlexgioahtoadcwpnaquxn...

correct output
596345160784615487534168536470...

user output
191237908846744645551831498145...

Feedback: Incorrect character on line 1 col 1: expected "596345160784...", got "191237908846..."

Test 25

Verdict:

input
msfgfgfvvcwyezwjxyaooxudaqfpxo...

correct output
717476109909956801533326919144...

user output
252675698492429128347231453130...

Feedback: Incorrect character on line 1 col 1: expected "717476109909...", got "252675698492..."

Test 26

Verdict:

input
yagjupbyibjsndsdsvxgqztkfrlqpq...

correct output
235583496947932628535470171742...

user output
223240825920416987367653208156...

Feedback: Incorrect character on line 1 col 2: expected "235583496947...", got "223240825920..."

Test 27

Verdict:

input
gvgntrbeyypbxvtqfunhxnwgzwavhe...

correct output
111088422779874450993038450753...

user output
858592449804839312330229127025...

Feedback: Incorrect character on line 1 col 1: expected "111088422779...", got "858592449804..."

Test 28

Verdict:

input
pwijgccirkilmfhhpcxusuctnynxbv...

correct output
446346258489784916012992902633...

user output
235595743098287186884459494991...

Feedback: Incorrect character on line 1 col 1: expected "446346258489...", got "235595743098..."

Test 29

Verdict:

input
xertwfheuoynggemfetgganhcdnkwe...

correct output
283497304854230709850344401214...

user output
250969293672204194029067305263...

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

Test 30

Verdict:

input
clttjcqlmnabdouhzlcpktrnxgofhn...

correct output
218953374961690394340463245163...

user output
322206204077222428988713898220...

Feedback: Incorrect character on line 1 col 1: expected "218953374961...", got "322206204077..."