제출 #379378

#제출 시각아이디문제언어결과실행 시간메모리
379378LittleCubeTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
1000 ms16096 KiB
#pragma GCC optimize("O3,unroll-loops")
#include <bits/stdc++.h>
#pragma pack(0)
#define ll long long
#define pii pair<ll, ll>
#define pll pair<ll, ll>
#define F first
#define S second
#define MOD 1000000007
#define MOD2 998244353
#define _INFINITY 9223372036854775807
#define fast ios::sync_with_stdio(0), cin.tie(0)
using namespace std;

int n, m, r, f;
signed main()
{
    cin >> n >> m;
    for (int i = 1; i <= n * m; i++)
    {
        char c;
        cin >> c;
        if(c == 'R')
            r = 1;
        else if(c == 'F')
            f = 1;
    }
    cout << r + f << '\n';
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...