# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
988418 | 2024-05-24T16:20:47 Z | cnn008 | 드문 곤충 (IOI22_insects) | C++17 | 98 ms | 600 KB |
#include "bits/stdc++.h" using namespace std; #include "insects.h"; #ifdef N_N_C #include "debug.h" #else #define cebug(...) "Arya" #endif #define ll long long const int N=1e5+5; const int mod=1e9+7; int vis[205],type; int min_cardinality(int n){ for(int i=0; i<n; i++){ if(!vis[i]){ vis[i]=++type; move_inside(i); for(int j=i+1; j<n; j++){ move_inside(j); int val=press_button(); if(val==2) vis[j]=type; move_outside(j); } move_outside(i); } } map <int,int> mp; for(int i=0; i<n; i++) mp[vis[i]]++; int ans=INT_MAX; for(auto [x,y]:mp) ans=min(ans,y); return ans; } /** /\_/\ * (= ._.) * / >💖 \>💕 **/
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Correct | 1 ms | 344 KB | Output is correct |
3 | Correct | 1 ms | 344 KB | Output is correct |
4 | Correct | 1 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 340 KB | Output is correct |
6 | Correct | 2 ms | 344 KB | Output is correct |
7 | Correct | 98 ms | 412 KB | Output is correct |
8 | Correct | 12 ms | 344 KB | Output is correct |
9 | Correct | 11 ms | 344 KB | Output is correct |
10 | Correct | 3 ms | 344 KB | Output is correct |
11 | Correct | 41 ms | 412 KB | Output is correct |
12 | Correct | 4 ms | 344 KB | Output is correct |
13 | Correct | 11 ms | 344 KB | Output is correct |
14 | Correct | 4 ms | 344 KB | Output is correct |
15 | Correct | 7 ms | 344 KB | Output is correct |
16 | Correct | 8 ms | 344 KB | Output is correct |
17 | Correct | 10 ms | 344 KB | Output is correct |
18 | Correct | 10 ms | 344 KB | Output is correct |
19 | Correct | 17 ms | 344 KB | Output is correct |
20 | Correct | 35 ms | 412 KB | Output is correct |
21 | Correct | 58 ms | 408 KB | Output is correct |
22 | Correct | 85 ms | 412 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Correct | 1 ms | 344 KB | Output is correct |
3 | Correct | 1 ms | 344 KB | Output is correct |
4 | Correct | 1 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 340 KB | Output is correct |
6 | Correct | 2 ms | 344 KB | Output is correct |
7 | Correct | 98 ms | 412 KB | Output is correct |
8 | Correct | 12 ms | 344 KB | Output is correct |
9 | Correct | 11 ms | 344 KB | Output is correct |
10 | Correct | 3 ms | 344 KB | Output is correct |
11 | Correct | 41 ms | 412 KB | Output is correct |
12 | Correct | 4 ms | 344 KB | Output is correct |
13 | Correct | 11 ms | 344 KB | Output is correct |
14 | Correct | 4 ms | 344 KB | Output is correct |
15 | Correct | 7 ms | 344 KB | Output is correct |
16 | Correct | 8 ms | 344 KB | Output is correct |
17 | Correct | 10 ms | 344 KB | Output is correct |
18 | Correct | 10 ms | 344 KB | Output is correct |
19 | Correct | 17 ms | 344 KB | Output is correct |
20 | Correct | 35 ms | 412 KB | Output is correct |
21 | Correct | 58 ms | 408 KB | Output is correct |
22 | Correct | 85 ms | 412 KB | Output is correct |
23 | Runtime error | 2 ms | 600 KB | Execution killed with signal 11 |
24 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Correct | 1 ms | 344 KB | Output is correct |
3 | Correct | 1 ms | 344 KB | Output is correct |
4 | Correct | 1 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 344 KB | Output is correct |
6 | Correct | 1 ms | 344 KB | Output is correct |
7 | Runtime error | 2 ms | 600 KB | Execution killed with signal 11 |
8 | Halted | 0 ms | 0 KB | - |