# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1261193 | sohamsen15 | Tracks in the Snow (BOI13_tracks) | C++20 | 49 ms | 476 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int m, n; cin >> m >> n;
bool a = false, b = false;
for (int i = 0; i < m; i++) {
string s; cin >> s;
for (char c: s) {
if (c == 'R') a = true;
else if (c == 'F') b = true;
}
}
cout << a + b;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |