Submission #7037504
Source Code Expand
// "bits/stdc++.h" {{{
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <numeric>
#include <array>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <list>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <limits>
#include <typeinfo>
#include <initializer_list>
#include <bitset>
#include <chrono>
#include <functional>
#include <tuple>
#include <typeindex>
#include <utility>
#include <string>
#include <regex>
// }}}
// Begin {{{
using namespace std;
#define all(x) x.begin(), x.end()
#define rep(i, n) for (i64 i = 0; i < (n); ++i)
#define reps(i, s, n) for (i64 i = (s); i <= (n); ++i)
#define VAR(Type, ...) Type __VA_ARGS__; IN(__VA_ARGS__)
#define Float(x) OUTN(fixed, setprecision(x));
using i64 = int_fast64_t;
using pii = pair<i64, i64>;
template <class A, class B>
inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B>
inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }
constexpr int INF = 0x3f3f3f3f;
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
constexpr int MOD = int(1e9) + 7;
// IN
void IN() {}
template <class Head, class... Tail>
void IN(Head&& head, Tail&&... tail) {
cin >> head;
IN(forward<Tail>(tail)...);
}
// OUTS
void OUTS() {}
template <class Head, class... Tail>
void OUTS(Head&& head, Tail&&... tail) {
cout << head << " \n"[sizeof...(tail)==0];
OUTS(forward<Tail>(tail)...);
}
template <class T>
void OUTS(vector<T> &vec) { for (auto &e : vec) cout << e << " \n"[&e==&vec.back()]; }
template <class T>
void OUTS(vector<vector<T>> &df) { for (auto &vec : df) OUTS(vec); }
// OUTL
void OUTL() {}
template <class Head, class... Tail>
void OUTL(Head&& head, Tail&&... tail) {
cout << head << "\n";
OUTL(forward<Tail>(tail)...);
}
template <class T>
void OUTL(vector<T> &vec) { for (auto &e : vec) cout << e << "\n"; }
// OUTN
void OUTN() {}
template <class Head, class... Tail>
void OUTN(Head&& head, Tail&&... tail) {
cout << head;
OUTN(forward<Tail>(tail)...);
}
template <class T>
void OUTN(vector<T> &vec) { for (auto &e : vec) cout << e; }
// }}} End
signed main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
VAR(int, h, w);
reps(i, 1, h) {
char c = 'A';
rep(j, w) {
VAR(string, s);
if (s == "snuke") OUTN(c, i, "\n");
c++;
}
}
return 0;
}
Submission Info
Submission Time |
|
Task |
A - Where's Snuke? |
User |
r1933 |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
2664 Byte |
Status |
AC |
Exec Time |
4 ms |
Memory |
384 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 |
4 ms |
384 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 |