# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
634051 | 2022-08-23T18:06:52 Z | sword060 | Mobitel (COCI14_mobitel) | C++17 | 0 ms | 212 KB |
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int a[10],y; for(int i=1;i<=9;i++)cin>>y,a[y]=i; string s;cin>>s; int lst=-1; for(auto& i:s){ int c=i-'a'; int k=c/3,m=c%3; if(k==lst)cout<<'#'; for(int j=0;j<=m;j++) cout<<a[k+2]; lst=k; } return 0; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |