提出 #991398


ソースコード 拡げる

#include"bits/stdc++.h"
using namespace std;

//define
#define ALL(a) a.begin(),a.end()
#define REP(i,n) for(int i=0;i<n;i++)
#define RREP(i,n) for(int i=n-1;i>=0;i--)
#define debug(x) if(1)cout<<#x<<":"<<x<<endl;
#define DEBUG(x) if(1)cout<<#x<<":"<<x<<endl;
#define ll long long

//typedef
typedef vector<int> vi;
typedef vector<vector<int>> vvi;

int main() {
	int h, w;
	cin >> h >> w;
	int resh, resw;
	for (int i = 0; i < h; i++) {
		for (int j = 0; j < w; j++) {
			string s;
			cin >> s;
			if (s == "snuke") {
				resh = i;
				resw = j;
			}
		}
	}
	cout << char('A' + resw) << resh+1 << endl;
	return 0;
}

提出情報

提出日時
問題 A - Where's Snuke?
ユーザ nikutto
言語 C++14 (GCC 5.4.1)
得点 100
コード長 651 Byte
結果 AC
実行時間 8 ms
メモリ 764 KB

ジャッジ結果

セット名 sample all
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 9
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
01-01.txt AC 8 ms 764 KB
01-02.txt AC 3 ms 256 KB
01-03.txt AC 3 ms 256 KB
01-04.txt AC 3 ms 256 KB
01-05.txt AC 3 ms 256 KB
01-06.txt AC 3 ms 256 KB
01-07.txt AC 3 ms 256 KB
sample-01.txt AC 3 ms 256 KB
sample-02.txt AC 3 ms 256 KB