제출 #298480

#제출 시각아이디문제언어결과실행 시간메모리
298480shrek12357Tracks in the Snow (BOI13_tracks)C++14
2.19 / 100
1337 ms16392 KiB
#include <iostream> using namespace std; int main(){ int n, m; cin >> n >> m; bool f1 = false, f2 = false; for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ char c; cin >> c; if(c == '.'){ continue; } if(c == 'R'){ f1 = true; } else{ f2 = true; } } } if(f1 && f2){ cout << 2 << endl; } else{ cout << 1 << endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...