제출 #1315262

#제출 시각아이디문제언어결과실행 시간메모리
1315262heneni6579Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
546 ms416 KiB
#include <bits/stdc++.h> int main() { int h, w; std::cin >> h >> w; bool fFound = false; bool rFound = false; for (int i = 0; i < h; i++) for (int i = 0; i < w; i++) { char a; std::cin >> a; if (a == 'R') rFound = true; if (a == 'F') fFound = true; } int res = 0; if (rFound) res += 1; if (fFound) res += 1; std::cout << res << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...