Submission #1192841

#TimeUsernameProblemLanguageResultExecution timeMemory
1192841kamal1122333Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
481 ms416 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...