Submission #11685748
Source Code Expand
#include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<vector> #include<set> #include<map> #include<queue> #include<stack> #include<cctype> #include<climits> #include<string> #include<bitset> #include<cfloat> #include<iomanip> #include<numeric> //#define int long long #define repi(i,start,end) for(int (i)=(start),TemPNuM=(int)(end);(i)<TemPNuM;++(i)) #define rep(i,end) repi((i),0,(end)) #define rfor(x,v) for(auto& (x) : (v)) #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() #define fsort(v,lambda) sort(all((v)),(lambda)) #define vin(v) rep(i,(v).size())cin >> (v)[i]; #define vpin(v) rep(i,(v).size())cin>>v[i].first>>v[i].second using namespace std; using ll = long long; using pint = pair<int,int>; using vint = vector<int>; using vvint = vector<vint>; using vpint = vector<pint>; template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } template<class T>void put_double(T a){if(cout.precision()!=12)cout<<setprecision(12);cout<<a<<endl;} template<class T>void print(T a){cout << a << endl;} //lambda: [](int x, int y){return x<y;} signed main(void) { int h, w; cin >> h >> w; rep(i, h) { rep(j, w) { string s; cin >> s; if(s == "snuke") { cout << (char)('A' + j) << i + 1 << endl; } } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | sagoj0_ |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1471 Byte |
Status | AC |
Exec Time | 2 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 | 2 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 |