# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
771443 | NoLove | Tracks in the Snow (BOI13_tracks) | C++14 | 164 ms | 12188 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/**
* author : Lăng Trọng Đạt
* creater: 2023-07-03
**/
#include <iostream>
#include <algorithm>
using namespace std;
#define int int64_t
const int MAXN = 4e3 + 5;
//int nums[MAXN];
int w, h;
char tmp;
bool f = false, r = false;
int32_t main() {
cin.tie(0)->sync_with_stdio(0);
if (fopen("hi.inp", "r")) {
freopen("hi.inp", "r", stdin);
}
cin >> w >> h;
while (cin >> tmp) {
f |= tmp == 'F';
r |= tmp == 'R';
}
if (f & r) cout << 2;
else cout << 1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |