Submission #992231
Source Code Expand
/*
_,add8ba,
,d888888888b,
d8888888888888b _,ad8ba,_
d888888888888888) ,d888888888b,
I8888888888888888 _________ ,8888888888888b
__________`Y88888888888888P"""""""""""baaa,__ ,888888888888888,
,adP"""""""""""9888888888P""^ ^""Y8888888888888888I
,a8"^ ,d888P"888P^ ^"Y8888888888P'
,a8^ ,d8888' ^Y8888888P'
a88' ,d8888P' I88P"^
,d88' d88888P' "b,
,d88' d888888' `b,
,d88' d888888I `b,
d88I ,8888888' ___ `b,
,888' d8888888 ,d88888b, ____ `b,
d888 ,8888888I d88888888b, ,d8888b, `b
,8888 I8888888I d8888888888I ,88888888b 8,
I8888 88888888b d88888888888' 8888888888b 8I
d8886 888888888 Y888888888P' Y8888888888, ,8b
88888b I88888888b `Y8888888^ `Y888888888I d88,
Y88888b `888888888b, `""""^ `Y8888888P' d888I
`888888b 88888888888b, `Y8888P^ d88888
Y888888b ,8888888888888ba,_ _______ `""^ ,d888888
I8888888b, ,888888888888888888ba,_ d88888888b ,ad8888888I
`888888888b, I8888888888888888888888b, ^"Y888P"^ ____.,ad88888888888I
88888888888b,`888888888888888888888888b, "" ad888888888888888888888'
8888888888888698888888888888888888888888b_,ad88ba,_,d88888888888888888888888
88888888888888888888888888888888888888888b,`"""^ d8888888888888888888888888I
8888888888888888888888888888888888888888888baaad888888888888888888888888888'
Y8888888888888888888888888888888888888888888888888888888888888888888888888P
I888888888888888888888888888888888888888888888P^ ^Y8888888888888888888888'
`Y88888888888888888P88888888888888888888888888' ^88888888888888888888I
`Y8888888888888888 `8888888888888888888888888 8888888888888888888P'
`Y888888888888888 `888888888888888888888888, ,888888888888888888P'
`Y88888888888888b `88888888888888888888888I I888888888888888888'
"Y8888888888888b `8888888888888888888888I I88888888888888888'
"Y88888888888P `888888888888888888888b d8888888888888888'
^""""""""^ `Y88888888888888888888, 888888888888888P'
"8888888888888888888b, Y888888888888P^
`Y888888888888888888b `Y8888888P"^
"Y8888888888888888P `""""^
`"YY88888888888P'
^""""""""'
*/
#include <bits/stdc++.h>
#define pb push_back
#define pf push_front
#define in insert
#define F first
#define S second
#define sz(a) int (a.size ())
#define mp make_pair
#define GGWP return 0
#define all(a) (a).begin(), (a).end()
#define pii pair<int,int>
#define graph vector <vector <int> >
#define fname ""
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
using namespace std;
const int inf = int (1e9);
const double eps = 0.0000000001, pi = 3.14159265358979323;
int main () {
ios::sync_with_stdio(0);
cin.tie(0);
#ifndef ONLINE_JUDGE
freopen (fname"in", "r", stdin);
freopen (fname"out", "w", stdout);
#endif
int h, w, x, y;
string s;
cin >> h >> w;
for (int i=1; i<=h; ++i) {
for (int j=1; j<=w; ++j) {
cin >> s;
if (s == "snuke") {
x = i, y = j;
}
}
}
cout << char ('A' - 1 + y) << x;
GGWP;
}
Submission Info
Submission Time |
|
Task |
A - Where's Snuke? |
User |
nuradil |
Language |
C++14 (GCC 5.4.1) |
Score |
0 |
Code Size |
4204 Byte |
Status |
RE |
Exec Time |
374 ms |
Memory |
384 KB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:73:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen (fname"in", "r", stdin);
^
./Main.cpp:74:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen (fname"out", "w", stdout);
^
Judge Result
Set Name |
sample |
all |
Score / Max Score |
0 / 0 |
0 / 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 |
RE |
374 ms |
384 KB |
01-02.txt |
RE |
109 ms |
256 KB |
01-03.txt |
RE |
109 ms |
256 KB |
01-04.txt |
RE |
108 ms |
256 KB |
01-05.txt |
RE |
110 ms |
256 KB |
01-06.txt |
RE |
110 ms |
256 KB |
01-07.txt |
RE |
107 ms |
256 KB |
sample-01.txt |
RE |
110 ms |
256 KB |
sample-02.txt |
RE |
108 ms |
256 KB |