Submission #991296
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef int _loop_int;
#define REP(i,n) for(_loop_int i=0;i<(_loop_int)(n);++i)
#define FOR(i,a,b) for(_loop_int i=(_loop_int)(a);i<(_loop_int)(b);++i)
#define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1;i>=(_loop_int)(a);--i)
#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()
#define CHMIN(a,b) a=min((a),(b))
#define CHMAX(a,b) a=max((a),(b))
// mod
const ll MOD = 1000000007ll;
#define FIX(a) ((a)%MOD+MOD)%MOD
// floating
typedef double Real;
const Real EPS = 1e-11;
#define EQ0(x) (abs(x)<EPS)
#define EQ(a,b) (abs(a-b)<EPS)
typedef complex<Real> P;
int main(){
int h,w;
scanf("%d%d",&h,&w);
int a,b;
REP(i,h)REP(j,w){
string s;
cin>>s;
if(s=="snuke"){
a=i;b=j;
}
}
printf("%c%d\n",b+'A',a+1);
return 0;
}
Submission Info
Submission Time
2016-11-26 12:31:29+0900
Task
A - Where's Snuke?
User
rickytheta
Language
C++14 (GCC 5.4.1)
Score
100
Code Size
1075 Byte
Status
AC
Exec Time
92 ms
Memory
764 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:36:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&h,&w);
^
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
Case Name
Status
Exec Time
Memory
01-01.txt
AC
92 ms
764 KB
01-02.txt
AC
2 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
2 ms
256 KB
sample-02.txt
AC
2 ms
256 KB