# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1149868 | swayam78 | Tracks in the Snow (BOI13_tracks) | C++20 | 506 ms | 412 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
t = 1;
while(t--){
int h , w;
cin >> h >> w;
vector<int> freq(2);
for(int i = 0 ; i<h; i++){
for(int j = 0; j<w; j++){
char ch;
cin >> ch;
if(ch == 'R'){
freq[0] = 1;
}
else if(ch == 'F'){
freq[1] = 1;
}
}
}
cout<<freq[0]+freq[1]<<endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |