# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
885392 | 2023-12-09T15:02:35 Z | hihihihaw | Tracks in the Snow (BOI13_tracks) | C++17 | 58 ms | 16104 KB |
#include <bits/stdc++.h> using namespace std; #define int long long #define mod 998244353 #define endl "\n" #define pb push_back #define pii pair<int,int> #define tiii tuple<int,int,int> void solve(){ int h,w; cin>>h>>w; char a[h][w]; string b; for (int i=0;i<h;i++){ cin>>b; for (int j=0;j<w;j++) a[i][j]=b[j]; } int f=0,r=0; for (int i=0;i<h;i++){ for (int j=0;j<w;j++){ if (a[i][j]=='R') r=1; if (a[i][j]=='F') f=1; } } cout<<f+r; } int32_t main() { ios_base::sync_with_stdio(0);cin.tie(0); if (0){ freopen("herding.in", "r", stdin); freopen("herding.out", "w", stdout); } int t=1; if (!t)cin>>t; while(t--){ solve(); } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 604 KB | Output isn't correct |
2 | Incorrect | 0 ms | 348 KB | Output isn't correct |
3 | Incorrect | 0 ms | 344 KB | Output isn't correct |
4 | Incorrect | 1 ms | 604 KB | Output isn't correct |
5 | Incorrect | 1 ms | 348 KB | Output isn't correct |
6 | Incorrect | 0 ms | 344 KB | Output isn't correct |
7 | Incorrect | 0 ms | 348 KB | Output isn't correct |
8 | Incorrect | 0 ms | 348 KB | Output isn't correct |
9 | Incorrect | 0 ms | 360 KB | Output isn't correct |
10 | Incorrect | 1 ms | 344 KB | Output isn't correct |
11 | Incorrect | 0 ms | 348 KB | Output isn't correct |
12 | Incorrect | 1 ms | 348 KB | Output isn't correct |
13 | Incorrect | 1 ms | 348 KB | Output isn't correct |
14 | Incorrect | 1 ms | 348 KB | Output isn't correct |
15 | Incorrect | 1 ms | 856 KB | Output isn't correct |
16 | Incorrect | 2 ms | 604 KB | Output isn't correct |
17 | Incorrect | 1 ms | 604 KB | Output isn't correct |
18 | Incorrect | 1 ms | 348 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Output isn't correct |
2 | Incorrect | 6 ms | 1884 KB | Output isn't correct |
3 | Incorrect | 53 ms | 16088 KB | Output isn't correct |
4 | Incorrect | 13 ms | 3932 KB | Output isn't correct |
5 | Incorrect | 18 ms | 9052 KB | Output isn't correct |
6 | Incorrect | 48 ms | 15960 KB | Output isn't correct |
7 | Incorrect | 1 ms | 348 KB | Output isn't correct |
8 | Incorrect | 1 ms | 348 KB | Output isn't correct |
9 | Incorrect | 0 ms | 348 KB | Output isn't correct |
10 | Incorrect | 0 ms | 348 KB | Output isn't correct |
11 | Incorrect | 1 ms | 348 KB | Output isn't correct |
12 | Incorrect | 0 ms | 348 KB | Output isn't correct |
13 | Incorrect | 6 ms | 1884 KB | Output isn't correct |
14 | Incorrect | 4 ms | 1116 KB | Output isn't correct |
15 | Incorrect | 3 ms | 1368 KB | Output isn't correct |
16 | Incorrect | 3 ms | 860 KB | Output isn't correct |
17 | Incorrect | 14 ms | 4420 KB | Output isn't correct |
18 | Incorrect | 12 ms | 4188 KB | Output isn't correct |
19 | Incorrect | 10 ms | 3932 KB | Output isn't correct |
20 | Incorrect | 10 ms | 3676 KB | Output isn't correct |
21 | Incorrect | 27 ms | 9568 KB | Output isn't correct |
22 | Incorrect | 18 ms | 9056 KB | Output isn't correct |
23 | Incorrect | 27 ms | 8032 KB | Output isn't correct |
24 | Incorrect | 29 ms | 9324 KB | Output isn't correct |
25 | Incorrect | 48 ms | 15968 KB | Output isn't correct |
26 | Correct | 21 ms | 12376 KB | Output is correct |
27 | Incorrect | 34 ms | 15976 KB | Output isn't correct |
28 | Incorrect | 49 ms | 16104 KB | Output isn't correct |
29 | Incorrect | 46 ms | 15964 KB | Output isn't correct |
30 | Incorrect | 39 ms | 15712 KB | Output isn't correct |
31 | Incorrect | 58 ms | 10328 KB | Output isn't correct |
32 | Incorrect | 34 ms | 16088 KB | Output isn't correct |