# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1120568 | vjudge1 | Tracks in the Snow (BOI13_tracks) | C++17 | 246 ms | 16460 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ld double
const int INF = 1e18;
const int mod = 12345;
const int sz = 4e3 + 5;
char a[sz][sz];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);
int n , m;
cin >> n >> m;
int cnt1 = 0 , cnt2 = 0;
for(int i = 1;i <= n;i++){
for(int j = 1;j <= m;j++){
cin >> a[i][j];
if(a[i][j] == 'R') cnt1++;
if(a[i][j] == 'F') cnt2++;
}
}
if(cnt1 == 0 && cnt2)
{
cout << 1 << endl;
}
else if(cnt1 && cnt2 == 0)
{
cout << 1 << endl;
}
else if(cnt1 == 0 && cnt2 == 0)
{
cout << 0 << endl;
}
else{
cout << 2 << endl;
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |