# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
95297 | 2019-01-29T19:57:21 Z | karlopuh | Marko (COCI15_marko) | C++14 | 28 ms | 1528 KB |
#include <bits/stdc++.h> using namespace std; vector <string > iz; int brojac; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ string r; cin>>r; string f; for(int j=0;j<r.length();j++){ if(r[j]>='a' && r[j]<='c'){ f+="2"; } else if(r[j]>='d' && r[j]<='f'){ f+="3"; } else if(r[j]>='g' && r[j]<='i'){ f+="4"; } else if(r[j]>='j' && r[j]<='l'){ f+="5"; } else if(r[j]>='m' && r[j]<='o'){ f+="6"; } else if(r[j]>='p' && r[j]<='s'){ f+="7"; } else if(r[j]>='t' && r[j]<='v'){ cout<<"?"; f+="8"; } else if(r[j]>='w' && r[j]<='z'){ f+="9"; } } iz.push_back(f); } string unos; cin>>unos; for(int i = 0; i < n; i++){ if(iz[i]==unos)brojac++; } cout<<brojac; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 376 KB | Output isn't correct |
2 | Incorrect | 2 ms | 256 KB | Output isn't correct |
3 | Incorrect | 2 ms | 256 KB | Output isn't correct |
4 | Incorrect | 26 ms | 1400 KB | Output isn't correct |
5 | Incorrect | 5 ms | 504 KB | Output isn't correct |
6 | Incorrect | 5 ms | 504 KB | Output isn't correct |
7 | Incorrect | 17 ms | 1012 KB | Output isn't correct |
8 | Incorrect | 28 ms | 1528 KB | Output isn't correct |
9 | Incorrect | 5 ms | 504 KB | Output isn't correct |
10 | Incorrect | 19 ms | 1144 KB | Output isn't correct |