제출 #531398

#제출 시각아이디문제언어결과실행 시간메모리
531398MODDITracks in the Snow (BOI13_tracks)C++14
2.19 / 100
1000 ms31732 KiB
#include <bits/stdc++.h> #define ll long long #define pii pair<int,int> #define pll pair<ll,ll> #define vi vector<int> #define vl vector<ll> #define mp make_pair #define pb push_back using namespace std; int n, m; char mat[4001][4001]; int main(){ cin>>n>>m; bool f = false, r = false; for(int i = 0; i < n; i++){ for(int j =0 ; j < m; j++){ cin>>mat[i][j]; if(mat[i][j] =='F') f = true; if(mat[i][j] == 'R') r = true; } } cout<<f + r<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...