제출 #507976

#제출 시각아이디문제언어결과실행 시간메모리
507976wenqiTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
72 ms31888 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; int w, h; char grid[4069][4069]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> h >> w; int f = 0; int r = 0; for (int i = 0; i < h; i++) { cin >> grid[i]; for (int j = 0; j < w; j++) { if (grid[i][j] == 'F') f = 1; if (grid[i][j] == 'R') r = 1; } } cout << f + r << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...