답안 #771443

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
771443 2023-07-03T02:51:17 Z NoLove Tracks in the Snow (BOI13_tracks) C++14
2.1875 / 100
164 ms 12188 KB
/**
 *    author : Lăng Trọng Đạt
 *    creater: 2023-07-03
**/
#include <iostream>
#include <algorithm>
using namespace std;

#define int int64_t

const int MAXN = 4e3 + 5;
//int nums[MAXN];
int w, h;
char tmp;
bool f = false, r = false;

int32_t main() {
    cin.tie(0)->sync_with_stdio(0);
    if (fopen("hi.inp", "r")) {
        freopen("hi.inp", "r", stdin);
    }

    cin >> w >> h;
    while (cin >> tmp) {
        f |= tmp == 'F';
        r |= tmp == 'R';
    }
    if (f & r) cout << 2;
    else cout << 1;
}

Compilation message

tracks.cpp: In function 'int32_t main()':
tracks.cpp:20:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   20 |         freopen("hi.inp", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 468 KB Output isn't correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Incorrect 1 ms 320 KB Output isn't correct
4 Incorrect 2 ms 456 KB Output isn't correct
5 Incorrect 2 ms 332 KB Output isn't correct
6 Incorrect 1 ms 316 KB Output isn't correct
7 Incorrect 1 ms 212 KB Output isn't correct
8 Incorrect 1 ms 328 KB Output isn't correct
9 Incorrect 1 ms 328 KB Output isn't correct
10 Incorrect 1 ms 340 KB Output isn't correct
11 Incorrect 1 ms 340 KB Output isn't correct
12 Incorrect 2 ms 340 KB Output isn't correct
13 Incorrect 1 ms 340 KB Output isn't correct
14 Incorrect 1 ms 336 KB Output isn't correct
15 Incorrect 3 ms 468 KB Output isn't correct
16 Incorrect 3 ms 456 KB Output isn't correct
17 Incorrect 3 ms 468 KB Output isn't correct
18 Incorrect 2 ms 368 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 328 KB Output isn't correct
2 Incorrect 19 ms 1840 KB Output isn't correct
3 Incorrect 164 ms 9696 KB Output isn't correct
4 Incorrect 46 ms 3864 KB Output isn't correct
5 Incorrect 85 ms 8988 KB Output isn't correct
6 Incorrect 164 ms 11144 KB Output isn't correct
7 Incorrect 1 ms 368 KB Output isn't correct
8 Incorrect 1 ms 340 KB Output isn't correct
9 Incorrect 2 ms 332 KB Output isn't correct
10 Incorrect 1 ms 340 KB Output isn't correct
11 Incorrect 1 ms 328 KB Output isn't correct
12 Incorrect 1 ms 340 KB Output isn't correct
13 Incorrect 15 ms 1700 KB Output isn't correct
14 Incorrect 9 ms 1108 KB Output isn't correct
15 Incorrect 10 ms 1200 KB Output isn't correct
16 Incorrect 7 ms 852 KB Output isn't correct
17 Incorrect 39 ms 4172 KB Output isn't correct
18 Incorrect 38 ms 4132 KB Output isn't correct
19 Incorrect 37 ms 3872 KB Output isn't correct
20 Incorrect 41 ms 3624 KB Output isn't correct
21 Incorrect 91 ms 9288 KB Output isn't correct
22 Incorrect 95 ms 9096 KB Output isn't correct
23 Incorrect 76 ms 7836 KB Output isn't correct
24 Incorrect 89 ms 9132 KB Output isn't correct
25 Incorrect 155 ms 11800 KB Output isn't correct
26 Correct 125 ms 12188 KB Output is correct
27 Incorrect 154 ms 11748 KB Output isn't correct
28 Incorrect 156 ms 11768 KB Output isn't correct
29 Incorrect 156 ms 11816 KB Output isn't correct
30 Incorrect 151 ms 11808 KB Output isn't correct
31 Incorrect 101 ms 10280 KB Output isn't correct
32 Incorrect 153 ms 11732 KB Output isn't correct