# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
94318 | theknife2001 | Marko (COCI15_marko) | C++17 | 20 ms | 1656 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>
using namespace std;
const int N=1055;
string s[N];
string a;
int main()
{
a="22233344455566677778889999";
int n;
cin>>n;
string t;
for(int i=0;i<n;i++)
{
cin>>t;
for(int j=0;j<t.size();j++)
{
s[i]+=a[t[j]-'a'];
}
}
cin>>t;
int ans=0;
for(int i=0;i<n;i++)
{
if(s[i].size()!=t.size())
continue ;
for(int j=0;j<s[i].size();j++)
{
if(t[j]!=s[i][j])
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |