# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1192841 | kamal1122333 | Tracks in the Snow (BOI13_tracks) | C++20 | 481 ms | 416 KiB |
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define f first
#define s second
using namespace std;
int main()
{
ll n, m;
cin>>n>>m;
bool z=0, z2=0;
for (int i=0; i<n; i++){
for (int j=0; j<m; j++){
char x;
cin>>x;
if (x=='F') z=1;
else if (x=='R') z2=1;
}
}
cout<<z+z2<<endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |