Submission #991303


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

#define forn(i,n) for (int i = 0; i < int(n); i++)
#define ford(i,n) for (int i = int(n) - 1; i >= 0; i--)
#define fore(i,l,r) for (int i = int(l); i < int(r); i++)
#define all(a) a.begin(), a.end()
#define sz(a) int(a.size())
#define mp make_pair
#define pb push_back
#define x first
#define y second

template<typename X> inline X abs(const X& a) { return a < 0 ? -a : a; }
template<typename X> inline X sqr(const X& a) { return a * a; }

typedef long long li;
typedef long double ld;
typedef pair<int, int> pt;

const int INF = int(1e9);
const li INF64 = li(1e18);
const ld EPS = 1e-9;
const ld PI = acosl(ld(-1));

mt19937 mt(time(NULL));

const int N = 30 + 3;
int n, m;
string s;

inline bool read()
{
	if (scanf ("%d%d", &n, &m) != 2)
		return false;
		
	forn(i, n)
		forn (j, m)
		{
			assert(cin >> s);
			
			if (s == "snuke")
			{
				printf ("%c%d\n", char('A' + i), j + 1);
				return true;
			}
		}
		
	return true;
}

inline void solve()
{
}

int main()
{
#ifdef SU2_PROJ
	assert(freopen("input.txt", "r", stdin));
	assert(freopen("output.txt", "w", stdout));
#endif

	cout << setprecision(25) << fixed;
	cerr << setprecision(10) << fixed;

	assert(read());
	solve();

#ifdef SU2_PROJ
	cerr << "TIME: " << clock() << endl;
#endif

	return 0;
}

Submission Info

Submission Time
Task A - Where's Snuke?
User IlyaLos
Language C++14 (GCC 5.4.1)
Score 0
Code Size 1382 Byte
Status WA
Exec Time 9 ms
Memory 764 KB

Judge Result

Set Name sample all
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
WA × 1
AC × 3
WA × 6
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 9 ms 764 KB
01-02.txt AC 3 ms 256 KB
01-03.txt WA 3 ms 256 KB
01-04.txt WA 3 ms 256 KB
01-05.txt WA 3 ms 256 KB
01-06.txt WA 3 ms 256 KB
01-07.txt WA 3 ms 256 KB
sample-01.txt WA 3 ms 256 KB
sample-02.txt AC 3 ms 256 KB