제출 #555271

#제출 시각아이디문제언어결과실행 시간메모리
555271status_codingTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
930 ms15912 KiB
#include <iostream>

using namespace std;

int n,m;
bool hasF, hasR;

int main()
{
    cin>>n>>m;
    for(int i=1;i<=n;i++)
        for(int j=1;j<=m;j++)
        {
            char ch;
            cin>>ch;

            if(ch == 'F')
                hasF = true;
            if(ch == 'R')
                hasR = true;
        }

    cout<<(int)hasF + (int)hasR;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...