# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
445156 | AnYandEvery | Tracks in the Snow (BOI13_tracks) | C++17 | 0 ms | 0 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.
#include <bits/stdc++.h>
using namespace std;
int main(){
int H, W; cin >> H >> W;
bool rabbit = false, fox = false;
for(int r = 0; r < H; r++){
for(int c = 0; c < W; c++){
char c; cin >> c;
if(c=='R')rabbit = true;
if(c=='F')fox = true;
}
}
int ret = 0;
if(rabbit)ret++;
if(fox)ret++;
cout << ret << endl;
}