답안 #910192

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
910192 2024-01-18T01:35:18 Z ByeWorld Tracks in the Snow (BOI13_tracks) C++14
0 / 100
34 ms 8540 KB
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,unroll-loops")
#define bupol __builtin_popcount
//#define int long long 
#define ll long long
#define ld long double
#define fi first
#define se second
#define pb push_back
#define lf (id<<1)
#define rg ((id<<1)|1)
#define md ((l+r)>>1)
using namespace std;
const int MAXN = 2e5+5;
const int MAXK = 205;
const int LOG = 20;
const int MOD = 1e9+7;
const int SQRT = 520;
const int INF = 1e9+10;
typedef pair<ll,ll> pii;
typedef pair<ll,pii> ipii;

int h, w;
string s[410];

signed main(){
    //ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> h >> w;
    for(int i=0; i<h; i++) cin >> s[i];

    int ans = 0; set<char> x; 
    for(int i=0; i<h; i++){
        for(int j=0; j<w; j++){
            if(s[i][j]=='.') continue;
            x.insert(s[i][j]);
        }
    }
    cout << x.size() << '\n';
}

Compilation message

tracks.cpp: In function 'int main()':
tracks.cpp:31:9: warning: unused variable 'ans' [-Wunused-variable]
   31 |     int ans = 0; set<char> x;
      |         ^~~
# 결과 실행 시간 메모리 Grader output
1 Runtime error 4 ms 1372 KB Execution killed with signal 11
2 Incorrect 1 ms 600 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Runtime error 3 ms 1116 KB Execution killed with signal 11
5 Incorrect 2 ms 604 KB Output isn't correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Incorrect 0 ms 348 KB Output isn't correct
8 Incorrect 1 ms 348 KB Output isn't correct
9 Incorrect 1 ms 344 KB Output isn't correct
10 Incorrect 2 ms 600 KB Output isn't correct
11 Incorrect 1 ms 348 KB Output isn't correct
12 Incorrect 2 ms 604 KB Output isn't correct
13 Incorrect 2 ms 604 KB Output isn't correct
14 Incorrect 2 ms 604 KB Output isn't correct
15 Runtime error 4 ms 1372 KB Execution killed with signal 11
16 Runtime error 4 ms 1372 KB Execution killed with signal 11
17 Runtime error 4 ms 1580 KB Execution killed with signal 11
18 Runtime error 3 ms 968 KB Execution killed with signal 11
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 600 KB Execution killed with signal 11
2 Runtime error 9 ms 2648 KB Execution killed with signal 11
3 Runtime error 28 ms 8540 KB Execution killed with signal 11
4 Runtime error 14 ms 4552 KB Execution killed with signal 11
5 Runtime error 19 ms 4956 KB Execution killed with signal 11
6 Runtime error 34 ms 8512 KB Execution killed with signal 11
7 Runtime error 1 ms 604 KB Execution killed with signal 11
8 Runtime error 1 ms 460 KB Execution killed with signal 11
9 Incorrect 2 ms 600 KB Output isn't correct
10 Incorrect 1 ms 348 KB Output isn't correct
11 Runtime error 1 ms 604 KB Execution killed with signal 11
12 Incorrect 1 ms 348 KB Output isn't correct
13 Runtime error 9 ms 2652 KB Execution killed with signal 11
14 Runtime error 8 ms 2664 KB Execution killed with signal 11
15 Runtime error 7 ms 2652 KB Execution killed with signal 11
16 Incorrect 14 ms 1628 KB Output isn't correct
17 Runtime error 14 ms 4696 KB Execution killed with signal 11
18 Runtime error 13 ms 4700 KB Execution killed with signal 11
19 Runtime error 14 ms 4700 KB Execution killed with signal 11
20 Runtime error 13 ms 4560 KB Execution killed with signal 11
21 Runtime error 19 ms 5076 KB Execution killed with signal 11
22 Runtime error 19 ms 4968 KB Execution killed with signal 11
23 Runtime error 19 ms 5060 KB Execution killed with signal 11
24 Runtime error 18 ms 4952 KB Execution killed with signal 11
25 Runtime error 27 ms 8532 KB Execution killed with signal 11
26 Runtime error 21 ms 5464 KB Execution killed with signal 11
27 Runtime error 27 ms 8528 KB Execution killed with signal 11
28 Runtime error 26 ms 8532 KB Execution killed with signal 11
29 Runtime error 26 ms 8540 KB Execution killed with signal 11
30 Runtime error 27 ms 8456 KB Execution killed with signal 11
31 Runtime error 21 ms 5200 KB Execution killed with signal 11
32 Runtime error 26 ms 8540 KB Execution killed with signal 11