Submission #1003612
Source Code Expand
# include <stdio.h> # include <bits/stdc++.h> using namespace std; # define fi cin # define fo cout # define x first # define y second # define ll long long # define IOS ios_base :: sync_with_stdio(0);cin.tie(0) # define p(v) cerr << #v << " = " << v << '\n' # define p2(v) cerr << #v << " = " << (complex < int > (v.x,v.y)) << '\n' # define vi vector < int > # define vll vector < ll > # define pii pair < int , int > # define mp make_pair # define db long double # define pdd pair < db , db > int main(void) { #ifdef CF freopen("input","r",stdin); #endif // CF srand(time(0)); fo << fixed << setprecision(7); cerr << fixed << setprecision(7); int n,m; fi>>n>>m; m += 'A' - 1; for (int i = 1;i <= n;++i) for (int j = 'A';j <= m;++j) { string s; fi>>s; if (s == "snuke") return fo << char(j) << i << '\n',0; } cerr << "Time elapsed :" << clock() * 1000.0 / CLOCKS_PER_SEC << " ms" << '\n'; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | reality |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1069 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 256 KB |
Judge Result
Set Name | sample | all | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt |
all | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 3 ms | 256 KB |
01-02.txt | AC | 3 ms | 256 KB |
01-03.txt | AC | 3 ms | 256 KB |
01-04.txt | AC | 3 ms | 256 KB |
01-05.txt | AC | 3 ms | 256 KB |
01-06.txt | AC | 3 ms | 256 KB |
01-07.txt | AC | 3 ms | 256 KB |
sample-01.txt | AC | 3 ms | 256 KB |
sample-02.txt | AC | 2 ms | 256 KB |