답안 #757332

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
757332 2023-06-13T05:26:28 Z dxz05 Tracks in the Snow (BOI13_tracks) C++17
2.1875 / 100
332 ms 15904 KB
#pragma GCC optimize("Ofast,O3,unroll-loops")
#pragma GCC target("avx2")

#include <bits/stdc++.h>

using namespace std;

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define bpc(x) __builtin_popcount(x)
#define bpcll(x) __builtin_popcountll(x)
#define MP make_pair
//#define endl '\n'

mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());

typedef long long ll;
const int MOD = 1e9 + 7;
const int N = 1e5 + 3e2;

void solve(){
    int n, m;
    cin >> n >> m;

    bool fox = false, rabbit = false;
    for (int i = 0; i < n; i++){
        for (int j = 0; j < m; j++){
            char c;
            cin >> c;
            fox |= c == 'F';
            rabbit |= c == 'R';
        }
    }

    cout << fox + rabbit << endl;

}

int main(){
    clock_t startTime = clock();
    ios_base::sync_with_stdio(false);

#ifdef LOCAL
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif

    int test_cases = 1;
//    cin >> test_cases;

    for (int test = 1; test <= test_cases; test++){
        // cout << (solve() ? "YES" : "NO") << endl;
        solve();
    }

#ifdef LOCAL
    cerr << "Time: " << int((double) (clock() - startTime) / CLOCKS_PER_SEC * 1000) << " ms" << endl;
#endif

    return 0;
}

Compilation message

tracks.cpp: In function 'int main()':
tracks.cpp:40:13: warning: unused variable 'startTime' [-Wunused-variable]
   40 |     clock_t startTime = clock();
      |             ^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 564 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 5 ms 464 KB Output isn't correct
5 Incorrect 2 ms 336 KB Output isn't correct
6 Incorrect 1 ms 212 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 212 KB Output isn't correct
10 Incorrect 3 ms 388 KB Output isn't correct
11 Incorrect 1 ms 336 KB Output isn't correct
12 Incorrect 3 ms 340 KB Output isn't correct
13 Incorrect 2 ms 340 KB Output isn't correct
14 Incorrect 4 ms 340 KB Output isn't correct
15 Incorrect 8 ms 468 KB Output isn't correct
16 Incorrect 4 ms 468 KB Output isn't correct
17 Incorrect 5 ms 556 KB Output isn't correct
18 Incorrect 4 ms 472 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 376 KB Output isn't correct
2 Incorrect 26 ms 1748 KB Output isn't correct
3 Incorrect 257 ms 15900 KB Output isn't correct
4 Incorrect 83 ms 3880 KB Output isn't correct
5 Incorrect 147 ms 8988 KB Output isn't correct
6 Incorrect 269 ms 15904 KB Output isn't correct
7 Incorrect 2 ms 340 KB Output isn't correct
8 Incorrect 2 ms 340 KB Output isn't correct
9 Incorrect 2 ms 340 KB Output isn't correct
10 Incorrect 2 ms 340 KB Output isn't correct
11 Incorrect 2 ms 340 KB Output isn't correct
12 Incorrect 1 ms 340 KB Output isn't correct
13 Incorrect 26 ms 1824 KB Output isn't correct
14 Incorrect 17 ms 1100 KB Output isn't correct
15 Incorrect 18 ms 1196 KB Output isn't correct
16 Incorrect 14 ms 848 KB Output isn't correct
17 Incorrect 68 ms 4268 KB Output isn't correct
18 Incorrect 77 ms 4124 KB Output isn't correct
19 Incorrect 80 ms 3872 KB Output isn't correct
20 Incorrect 67 ms 3616 KB Output isn't correct
21 Incorrect 175 ms 9404 KB Output isn't correct
22 Incorrect 177 ms 8988 KB Output isn't correct
23 Incorrect 133 ms 7852 KB Output isn't correct
24 Incorrect 147 ms 9116 KB Output isn't correct
25 Incorrect 332 ms 15904 KB Output isn't correct
26 Correct 212 ms 11996 KB Output is correct
27 Incorrect 308 ms 11468 KB Output isn't correct
28 Incorrect 255 ms 11512 KB Output isn't correct
29 Incorrect 267 ms 11532 KB Output isn't correct
30 Incorrect 307 ms 11660 KB Output isn't correct
31 Incorrect 164 ms 10272 KB Output isn't correct
32 Incorrect 324 ms 11528 KB Output isn't correct