Submission #4585126
Source Code Expand
#include<cstdio> #include<iostream> #include<sstream> #include<string> #include<vector> #define ll long long #define FOR(i,N) for(int i=0;i<(int)N;i++) #define FORIN(i,a,b) for(int i=a;i<(int)b;i++) #define ALL(x) (x).begin(),(x).end() #define LAST(x) (x)[(x).size()-1] using namespace std; string to_hex(int x){ stringstream ss; ss<<hex<<x; return ss.str(); } string to_string(string s){ return s; } template<class T> string to_string(vector<T> v){ string ret="{"; FOR(i,v.size()-1){ ret+=to_string(v[i])+","; } if(v.size()>0){ ret+=to_string(LAST(v)); } ret+="}"; return ret; } void debug(){ cerr<<endl; } template<class Head,class... Tail> void debug(Head head,Tail... tail){ cerr<<" "<<to_string(head); debug(tail...); } int main(){ int H,W; cin>>H>>W; FOR(i,H){ FOR(j,W){ string s; cin>>s; if(s=="snuke"){ string ret=""; char col='A'+j; ret+=col; ret+=to_string(i+1); cout<<ret<<endl; return 0; } } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | phocom |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1242 Byte |
Status | AC |
Exec Time | 1 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, sample-01.txt, sample-02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 1 ms | 256 KB |
01-02.txt | AC | 1 ms | 256 KB |
01-03.txt | AC | 1 ms | 256 KB |
01-04.txt | AC | 1 ms | 256 KB |
01-05.txt | AC | 1 ms | 256 KB |
01-06.txt | AC | 1 ms | 256 KB |
01-07.txt | AC | 1 ms | 256 KB |
sample-01.txt | AC | 1 ms | 256 KB |
sample-02.txt | AC | 1 ms | 256 KB |