Task: | Piva and Glasses |
Sender: | joaquimballester |
Submission time: | 2024-10-28 17:07:23 +0200 |
Language: | C++ (C++11) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.01 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | WRONG ANSWER | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
#17 | WRONG ANSWER | 0.00 s | details |
#18 | WRONG ANSWER | 0.00 s | details |
#19 | WRONG ANSWER | 0.00 s | details |
#20 | WRONG ANSWER | 0.00 s | details |
#21 | WRONG ANSWER | 0.00 s | details |
#22 | WRONG ANSWER | 0.00 s | details |
#23 | WRONG ANSWER | 0.00 s | details |
#24 | WRONG ANSWER | 0.00 s | details |
#25 | WRONG ANSWER | 0.00 s | details |
#26 | WRONG ANSWER | 0.00 s | details |
#27 | WRONG ANSWER | 0.00 s | details |
#28 | WRONG ANSWER | 0.00 s | details |
#29 | WRONG ANSWER | 0.00 s | details |
#30 | WRONG ANSWER | 0.00 s | details |
Code
#include<iostream> #include<vector> #include<string> using namespace std; long long factorial(const int n) { long long f = 1; for (long long i=1; i<=n; ++i) f *= i; return f; } int main(){ string s; cin >> s; long long n = s.length(); vector<long long> lletres (25,0); for(long long i = 0; i < n; ++i){ char c = s[i]; int act = c - 97; ++lletres[act]; } long long num_lletres = 0; long long mult = 1; for(int i = 0; i < 25; ++i){ if(lletres[i] != 0){ ++num_lletres; mult*=lletres[i]; } } cout<<factorial(num_lletres)*mult<<endl; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
mynbiqpmzjplsgqejeydtzirwztejd... |
correct output |
---|
253955382019371746305129921157... |
user output |
---|
-2625880057733709824 |
Test 2
Verdict: WRONG ANSWER
input |
---|
szycidpyopumzgdpamntyyawoixzhs... |
correct output |
---|
551108061158008078173415475169... |
user output |
---|
-3066951346239307776 |
Test 3
Verdict: WRONG ANSWER
input |
---|
bcclfxzvjitgtbsvfnumzxqlroqiba... |
correct output |
---|
305421613370742845795015587427... |
user output |
---|
1687618407240826880 |
Test 4
Verdict: WRONG ANSWER
input |
---|
sreltpusctapirhgwprrpmuehueqmx... |
correct output |
---|
140037512077395979638061040922... |
user output |
---|
-5393425591636590592 |
Test 5
Verdict: WRONG ANSWER
input |
---|
jdxmpeccamrjzybhqrliyfdigauziz... |
correct output |
---|
348940989405062643281218932084... |
user output |
---|
-3277934433469988864 |
Test 6
Verdict: WRONG ANSWER
input |
---|
ixlzwxuqaoyhubfdlphmrdshaxgnif... |
correct output |
---|
523444502687933447128799316928... |
user output |
---|
-3157023338786717696 |
Test 7
Verdict: WRONG ANSWER
input |
---|
scpyibaevspyxlkyaipzgxnrrvdgsr... |
correct output |
---|
804291277421765770488004812470... |
user output |
---|
837669530690912256 |
Test 8
Verdict: WRONG ANSWER
input |
---|
emubcrdlsbqgbcnnchcrnbsdhuusbs... |
correct output |
---|
539368193886087805857792545271... |
user output |
---|
-1837188272502079488 |
Test 9
Verdict: WRONG ANSWER
input |
---|
lmegwbcehzqgmuaopompsgmcphyawi... |
correct output |
---|
665407925762077489110285862326... |
user output |
---|
-9127283516680175616 |
Test 10
Verdict: WRONG ANSWER
input |
---|
tliefvakqotckrtwbxmfwoxnffhbde... |
correct output |
---|
129648761524634643411433104526... |
user output |
---|
-7141514939381841920 |
Test 11
Verdict: WRONG ANSWER
input |
---|
bnpsagopiuzfbqpkchxlbnetlmnjvi... |
correct output |
---|
254352633815523810681607015996... |
user output |
---|
-7203388306967494656 |
Test 12
Verdict: WRONG ANSWER
input |
---|
ryooqsgfzqputzfdojecrzwubtmoux... |
correct output |
---|
212452622895141284453529611450... |
user output |
---|
7560541019750531072 |
Test 13
Verdict: WRONG ANSWER
input |
---|
ivqvlemalpiuzowthravteolfkgbsg... |
correct output |
---|
732490220763260338635928880269... |
user output |
---|
-1064397624431345664 |
Test 14
Verdict: WRONG ANSWER
input |
---|
jvvzfuhvehuxfecrgxjanevtaieczz... |
correct output |
---|
518420681110543932377602451247... |
user output |
---|
-7018271230780243968 |
Test 15
Verdict: WRONG ANSWER
input |
---|
twyuqhixijxcvojovmmydihklzilzu... |
correct output |
---|
364802587715444496585869643172... |
user output |
---|
1185387334196002816 |
Test 16
Verdict: WRONG ANSWER
input |
---|
gaqxbfhabzvewlhdkowlimilhglzkh... |
correct output |
---|
476873862461844332247115208362... |
user output |
---|
-6992893952655360000 |
Test 17
Verdict: WRONG ANSWER
input |
---|
ppjnhoanvwihuhajjkvextjazhtiae... |
correct output |
---|
767343312313426142222306561536... |
user output |
---|
-8429155205693571072 |
Test 18
Verdict: WRONG ANSWER
input |
---|
nzjljfywwrvidahmxniqzkuvxmerbe... |
correct output |
---|
910297874112935296564114827261... |
user output |
---|
552416632027217920 |
Test 19
Verdict: WRONG ANSWER
input |
---|
dvokhgpupfpjoigiwdkqvyzfzhfhgx... |
correct output |
---|
188739064612275094017617681593... |
user output |
---|
-8412724103928086528 |
Test 20
Verdict: WRONG ANSWER
input |
---|
bzqdqgmlqjsetidinkidykjastgcgd... |
correct output |
---|
232461691179008854504057599827... |
user output |
---|
6773413839565225984 |
Test 21
Verdict: WRONG ANSWER
input |
---|
xvzyeivudksfanncdekpsonggkuvkk... |
correct output |
---|
285713951274252866113989732127... |
user output |
---|
143049761308540928 |
Test 22
Verdict: WRONG ANSWER
input |
---|
nwnujpgzpzqfqqhzaalsncezyhhwbn... |
correct output |
---|
731682739693843565903082665678... |
user output |
---|
1697549196262899712 |
Test 23
Verdict: WRONG ANSWER
input |
---|
ehatofwdxulzchibktfrvxnwbsasij... |
correct output |
---|
450074573205377125973875496260... |
user output |
---|
-3458764513820540928 |
Test 24
Verdict: WRONG ANSWER
input |
---|
yjcasjnmqlexgioahtoadcwpnaquxn... |
correct output |
---|
596345160784615487534168536470... |
user output |
---|
-6237427209791864832 |
Test 25
Verdict: WRONG ANSWER
input |
---|
msfgfgfvvcwyezwjxyaooxudaqfpxo... |
correct output |
---|
717476109909956801533326919144... |
user output |
---|
3653202150076448768 |
Test 26
Verdict: WRONG ANSWER
input |
---|
yagjupbyibjsndsdsvxgqztkfrlqpq... |
correct output |
---|
235583496947932628535470171742... |
user output |
---|
-8887079808429719552 |
Test 27
Verdict: WRONG ANSWER
input |
---|
gvgntrbeyypbxvtqfunhxnwgzwavhe... |
correct output |
---|
111088422779874450993038450753... |
user output |
---|
2196982561970847744 |
Test 28
Verdict: WRONG ANSWER
input |
---|
pwijgccirkilmfhhpcxusuctnynxbv... |
correct output |
---|
446346258489784916012992902633... |
user output |
---|
-1639134342502416384 |
Test 29
Verdict: WRONG ANSWER
input |
---|
xertwfheuoynggemfetgganhcdnkwe... |
correct output |
---|
283497304854230709850344401214... |
user output |
---|
9018759794873335808 |
Test 30
Verdict: WRONG ANSWER
input |
---|
clttjcqlmnabdouhzlcpktrnxgofhn... |
correct output |
---|
218953374961690394340463245163... |
user output |
---|
-853713604363419648 |