답안 #757436

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
757436 2023-06-13T07:38:42 Z The_Samurai Tracks in the Snow (BOI13_tracks) C++17
2.1875 / 100
333 ms 20044 KB
#include "bits/stdc++.h"

using namespace std;

int INF = 1e9;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
    clock_t startTime = clock();
    int n, m;
    cin >> n >> m;
    vector<vector<char>> a(n, vector<char>(m));
    set<char> st;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> a[i][j];
            if (a[i][j] != '.') {
                st.insert(a[i][j]);
            }
        }
    }
    cout << st.size();


#ifdef sunnitov
    cerr << "\nTime: " << (int)((double)(clock() - startTime) / CLOCKS_PER_SEC * 1000);
#endif
}

/*
 chefeddiefedjeffeachbigagedegghehad - 0
 chefeddiefedjeffeachbigagedegghehad - 0

*/

Compilation message

tracks.cpp: In function 'int main()':
tracks.cpp:9:13: warning: unused variable 'startTime' [-Wunused-variable]
    9 |     clock_t startTime = clock();
      |             ^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 6 ms 812 KB Output isn't correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Incorrect 0 ms 212 KB Output isn't correct
4 Incorrect 4 ms 596 KB Output isn't correct
5 Incorrect 2 ms 468 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 212 KB Output isn't correct
9 Incorrect 1 ms 340 KB Output isn't correct
10 Incorrect 1 ms 340 KB Output isn't correct
11 Incorrect 2 ms 340 KB Output isn't correct
12 Incorrect 3 ms 468 KB Output isn't correct
13 Incorrect 2 ms 468 KB Output isn't correct
14 Incorrect 2 ms 468 KB Output isn't correct
15 Incorrect 6 ms 720 KB Output isn't correct
16 Incorrect 6 ms 724 KB Output isn't correct
17 Incorrect 6 ms 724 KB Output isn't correct
18 Incorrect 4 ms 640 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 596 KB Output isn't correct
2 Incorrect 33 ms 3160 KB Output isn't correct
3 Incorrect 261 ms 18536 KB Output isn't correct
4 Incorrect 68 ms 5484 KB Output isn't correct
5 Incorrect 141 ms 11864 KB Output isn't correct
6 Incorrect 295 ms 18404 KB Output isn't correct
7 Incorrect 2 ms 468 KB Output isn't correct
8 Incorrect 2 ms 468 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 588 KB Output isn't correct
12 Incorrect 1 ms 328 KB Output isn't correct
13 Incorrect 28 ms 3064 KB Output isn't correct
14 Incorrect 18 ms 2124 KB Output isn't correct
15 Incorrect 21 ms 2252 KB Output isn't correct
16 Incorrect 13 ms 1492 KB Output isn't correct
17 Incorrect 74 ms 6092 KB Output isn't correct
18 Incorrect 82 ms 6036 KB Output isn't correct
19 Incorrect 69 ms 5436 KB Output isn't correct
20 Incorrect 55 ms 4992 KB Output isn't correct
21 Incorrect 144 ms 12048 KB Output isn't correct
22 Incorrect 139 ms 11672 KB Output isn't correct
23 Incorrect 152 ms 10640 KB Output isn't correct
24 Incorrect 155 ms 11852 KB Output isn't correct
25 Incorrect 333 ms 18424 KB Output isn't correct
26 Correct 185 ms 14952 KB Output is correct
27 Incorrect 300 ms 19932 KB Output isn't correct
28 Incorrect 277 ms 20044 KB Output isn't correct
29 Incorrect 288 ms 19952 KB Output isn't correct
30 Incorrect 280 ms 19532 KB Output isn't correct
31 Incorrect 242 ms 13008 KB Output isn't correct
32 Incorrect 242 ms 19848 KB Output isn't correct