# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
999230 | AliHasanli | Marko (COCI15_marko) | C++17 | 9 ms | 1156 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 <bits/stdc++.h>
using namespace std;
string s;
char c[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 n;
map<string,int>mp;
int main()
{
cin>>n;
while (n--)
{
string in;
cin>>in;
for(int i=0;i<in.length();i++)
s+=c[in[i]-'a'];
mp[s]++;
s.clear();
}
cin>>s;
cout<<mp[s];
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |