# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165846 | itiam | Marko (COCI15_marko) | C++11 | 3 ms | 508 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <sstream>
using namespace std;
char La[26]={'2','2','2','3','3','3','4','4','4','5','5','5','6','6','6','7','7','7','7','8','8','8','9','9','9','9'};
int Lb[1000003];
int main(){
int N,b2,br;
string s,s2="";
cin >> N;
for (int i=0;i<N;i++){
cin >> s;
s2="";
b2=0;
for (int j=0;j<s.length();j++){
s2+=La[(int)s[j]-97];
}
stringstream pmc(s2); //pmc - pomocna varijabla
pmc >> b2;
Lb[b2]+=1;
}
cin >> br;
cout << Lb[br];
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |