제출 #856950

#제출 시각아이디문제언어결과실행 시간메모리
856950teeslaTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
242 ms16208 KiB
#include <bits/stdc++.h>
using namespace std;

int main(){

    int h,w; cin >> h >> w;

    int a = 0, b = 0;

    for(int i=0; i<h; i++){

        string s; cin >> s;

        for(auto j: s){


            if(j == '.') continue;
            else if(j == 'R') a = 1;
            else b = 1;
        }

    }

    cout << a + b << endl;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...