제출 #672526

#제출 시각아이디문제언어결과실행 시간메모리
672526aminTracks in the Snow (BOI13_tracks)C++14
0 / 100
176 ms125620 KiB
#include<bits/stdc++.h> using namespace std; int main() { //setIO(); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); long n,m; cin>>n>>m; long ans=0; long sum=0; long a[n][m]; for(long i=0;i<n;i++) { for(long y=0;y<m;y++) { cin>>a[i][y]; if(a[i][y]=='R') { ans=1; }else if(a[i][y]=='F') { sum=1; } } } cout<<sum+ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...