# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1110214 | 2024-11-09T02:39:41 Z | vjudge1 | Card Collection (JOI24_collection) | C++17 | 73 ms | 1096 KB |
#include<bits/stdc++.h> using namespace std; int n,m; set<pair<int,int>>f[30][30]; pair<int,int>a[20]; bool ktr[20]; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); if(fopen("c.INP","r")){ freopen("c.INP","r",stdin); freopen("c.OUT","w",stdout); } cin >>n>>m; for(int i=1;i<=n;i++){ int x,y; cin >>x>>y; f[i][i].insert({x,y}); } for(int sz=2;sz<=n;sz++){ for(int i=1,j=sz;j<=n;i++,j++){ for(int h=i;h<j;h++){ for(auto u:f[i][h]){ for(auto v:f[h+1][j]){ f[i][j].insert({max(u.first,v.first),max(u.second,v.second)}); f[i][j].insert({min(u.first,v.first),min(u.second,v.second)}); } } } } } for(int i=1;i<=m;i++){ int x,y; cin >>x>>y; a[i]={x,y}; } for(auto o:f[1][n]){ for(int i=1;i<=m;i++){ if((a[i].first==o.first)&&(a[i].second==o.second))ktr[i]=true; } } for(int i=1;i<=m;i++){ if(ktr[i])cout <<i<<' '; } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 336 KB | Output is correct |
2 | Correct | 1 ms | 336 KB | Output is correct |
3 | Correct | 1 ms | 336 KB | Output is correct |
4 | Correct | 1 ms | 504 KB | Output is correct |
5 | Correct | 1 ms | 336 KB | Output is correct |
6 | Correct | 1 ms | 336 KB | Output is correct |
7 | Correct | 1 ms | 336 KB | Output is correct |
8 | Correct | 2 ms | 336 KB | Output is correct |
9 | Correct | 1 ms | 336 KB | Output is correct |
10 | Correct | 2 ms | 336 KB | Output is correct |
11 | Correct | 1 ms | 336 KB | Output is correct |
12 | Correct | 2 ms | 336 KB | Output is correct |
13 | Correct | 6 ms | 348 KB | Output is correct |
14 | Correct | 4 ms | 592 KB | Output is correct |
15 | Correct | 7 ms | 592 KB | Output is correct |
16 | Correct | 7 ms | 592 KB | Output is correct |
17 | Correct | 15 ms | 592 KB | Output is correct |
18 | Correct | 18 ms | 576 KB | Output is correct |
19 | Correct | 29 ms | 860 KB | Output is correct |
20 | Correct | 1 ms | 336 KB | Output is correct |
21 | Correct | 1 ms | 336 KB | Output is correct |
22 | Correct | 1 ms | 336 KB | Output is correct |
23 | Correct | 1 ms | 336 KB | Output is correct |
24 | Correct | 1 ms | 336 KB | Output is correct |
25 | Correct | 1 ms | 336 KB | Output is correct |
26 | Correct | 1 ms | 336 KB | Output is correct |
27 | Correct | 6 ms | 592 KB | Output is correct |
28 | Correct | 11 ms | 592 KB | Output is correct |
29 | Correct | 12 ms | 592 KB | Output is correct |
30 | Correct | 27 ms | 848 KB | Output is correct |
31 | Correct | 27 ms | 676 KB | Output is correct |
32 | Correct | 23 ms | 816 KB | Output is correct |
33 | Correct | 46 ms | 852 KB | Output is correct |
34 | Correct | 2 ms | 336 KB | Output is correct |
35 | Correct | 73 ms | 1096 KB | Output is correct |
36 | Correct | 9 ms | 592 KB | Output is correct |
37 | Correct | 3 ms | 504 KB | Output is correct |
38 | Correct | 2 ms | 336 KB | Output is correct |
39 | Correct | 3 ms | 336 KB | Output is correct |
40 | Correct | 3 ms | 336 KB | Output is correct |
41 | Correct | 3 ms | 336 KB | Output is correct |
42 | Correct | 3 ms | 336 KB | Output is correct |
43 | Correct | 3 ms | 504 KB | Output is correct |
44 | Correct | 3 ms | 336 KB | Output is correct |
45 | Correct | 6 ms | 592 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 336 KB | Output is correct |
2 | Correct | 1 ms | 336 KB | Output is correct |
3 | Correct | 1 ms | 336 KB | Output is correct |
4 | Correct | 1 ms | 504 KB | Output is correct |
5 | Correct | 1 ms | 336 KB | Output is correct |
6 | Correct | 1 ms | 336 KB | Output is correct |
7 | Correct | 1 ms | 336 KB | Output is correct |
8 | Correct | 2 ms | 336 KB | Output is correct |
9 | Correct | 1 ms | 336 KB | Output is correct |
10 | Correct | 2 ms | 336 KB | Output is correct |
11 | Correct | 1 ms | 336 KB | Output is correct |
12 | Correct | 2 ms | 336 KB | Output is correct |
13 | Correct | 6 ms | 348 KB | Output is correct |
14 | Correct | 4 ms | 592 KB | Output is correct |
15 | Correct | 7 ms | 592 KB | Output is correct |
16 | Correct | 7 ms | 592 KB | Output is correct |
17 | Correct | 15 ms | 592 KB | Output is correct |
18 | Correct | 18 ms | 576 KB | Output is correct |
19 | Correct | 29 ms | 860 KB | Output is correct |
20 | Correct | 1 ms | 336 KB | Output is correct |
21 | Correct | 1 ms | 336 KB | Output is correct |
22 | Correct | 1 ms | 336 KB | Output is correct |
23 | Correct | 1 ms | 336 KB | Output is correct |
24 | Correct | 1 ms | 336 KB | Output is correct |
25 | Correct | 1 ms | 336 KB | Output is correct |
26 | Correct | 1 ms | 336 KB | Output is correct |
27 | Correct | 6 ms | 592 KB | Output is correct |
28 | Correct | 11 ms | 592 KB | Output is correct |
29 | Correct | 12 ms | 592 KB | Output is correct |
30 | Correct | 27 ms | 848 KB | Output is correct |
31 | Correct | 27 ms | 676 KB | Output is correct |
32 | Correct | 23 ms | 816 KB | Output is correct |
33 | Correct | 46 ms | 852 KB | Output is correct |
34 | Correct | 2 ms | 336 KB | Output is correct |
35 | Correct | 73 ms | 1096 KB | Output is correct |
36 | Correct | 9 ms | 592 KB | Output is correct |
37 | Correct | 3 ms | 504 KB | Output is correct |
38 | Correct | 2 ms | 336 KB | Output is correct |
39 | Correct | 3 ms | 336 KB | Output is correct |
40 | Correct | 3 ms | 336 KB | Output is correct |
41 | Correct | 3 ms | 336 KB | Output is correct |
42 | Correct | 3 ms | 336 KB | Output is correct |
43 | Correct | 3 ms | 504 KB | Output is correct |
44 | Correct | 3 ms | 336 KB | Output is correct |
45 | Correct | 6 ms | 592 KB | Output is correct |
46 | Runtime error | 2 ms | 592 KB | Execution killed with signal 11 |
47 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 336 KB | Output is correct |
2 | Correct | 1 ms | 336 KB | Output is correct |
3 | Correct | 1 ms | 336 KB | Output is correct |
4 | Correct | 1 ms | 504 KB | Output is correct |
5 | Correct | 1 ms | 336 KB | Output is correct |
6 | Correct | 1 ms | 336 KB | Output is correct |
7 | Correct | 1 ms | 336 KB | Output is correct |
8 | Correct | 2 ms | 336 KB | Output is correct |
9 | Correct | 1 ms | 336 KB | Output is correct |
10 | Correct | 2 ms | 336 KB | Output is correct |
11 | Correct | 1 ms | 336 KB | Output is correct |
12 | Correct | 2 ms | 336 KB | Output is correct |
13 | Correct | 6 ms | 348 KB | Output is correct |
14 | Correct | 4 ms | 592 KB | Output is correct |
15 | Correct | 7 ms | 592 KB | Output is correct |
16 | Correct | 7 ms | 592 KB | Output is correct |
17 | Correct | 15 ms | 592 KB | Output is correct |
18 | Correct | 18 ms | 576 KB | Output is correct |
19 | Correct | 29 ms | 860 KB | Output is correct |
20 | Correct | 1 ms | 336 KB | Output is correct |
21 | Correct | 1 ms | 336 KB | Output is correct |
22 | Correct | 1 ms | 336 KB | Output is correct |
23 | Correct | 1 ms | 336 KB | Output is correct |
24 | Correct | 1 ms | 336 KB | Output is correct |
25 | Correct | 1 ms | 336 KB | Output is correct |
26 | Correct | 1 ms | 336 KB | Output is correct |
27 | Correct | 6 ms | 592 KB | Output is correct |
28 | Correct | 11 ms | 592 KB | Output is correct |
29 | Correct | 12 ms | 592 KB | Output is correct |
30 | Correct | 27 ms | 848 KB | Output is correct |
31 | Correct | 27 ms | 676 KB | Output is correct |
32 | Correct | 23 ms | 816 KB | Output is correct |
33 | Correct | 46 ms | 852 KB | Output is correct |
34 | Correct | 2 ms | 336 KB | Output is correct |
35 | Correct | 73 ms | 1096 KB | Output is correct |
36 | Correct | 9 ms | 592 KB | Output is correct |
37 | Correct | 3 ms | 504 KB | Output is correct |
38 | Correct | 2 ms | 336 KB | Output is correct |
39 | Correct | 3 ms | 336 KB | Output is correct |
40 | Correct | 3 ms | 336 KB | Output is correct |
41 | Correct | 3 ms | 336 KB | Output is correct |
42 | Correct | 3 ms | 336 KB | Output is correct |
43 | Correct | 3 ms | 504 KB | Output is correct |
44 | Correct | 3 ms | 336 KB | Output is correct |
45 | Correct | 6 ms | 592 KB | Output is correct |
46 | Runtime error | 2 ms | 592 KB | Execution killed with signal 11 |
47 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 336 KB | Output is correct |
2 | Correct | 1 ms | 336 KB | Output is correct |
3 | Correct | 1 ms | 336 KB | Output is correct |
4 | Correct | 1 ms | 504 KB | Output is correct |
5 | Correct | 1 ms | 336 KB | Output is correct |
6 | Correct | 1 ms | 336 KB | Output is correct |
7 | Correct | 1 ms | 336 KB | Output is correct |
8 | Correct | 2 ms | 336 KB | Output is correct |
9 | Correct | 1 ms | 336 KB | Output is correct |
10 | Correct | 2 ms | 336 KB | Output is correct |
11 | Correct | 1 ms | 336 KB | Output is correct |
12 | Correct | 2 ms | 336 KB | Output is correct |
13 | Correct | 6 ms | 348 KB | Output is correct |
14 | Correct | 4 ms | 592 KB | Output is correct |
15 | Correct | 7 ms | 592 KB | Output is correct |
16 | Correct | 7 ms | 592 KB | Output is correct |
17 | Correct | 15 ms | 592 KB | Output is correct |
18 | Correct | 18 ms | 576 KB | Output is correct |
19 | Correct | 29 ms | 860 KB | Output is correct |
20 | Correct | 1 ms | 336 KB | Output is correct |
21 | Correct | 1 ms | 336 KB | Output is correct |
22 | Correct | 1 ms | 336 KB | Output is correct |
23 | Correct | 1 ms | 336 KB | Output is correct |
24 | Correct | 1 ms | 336 KB | Output is correct |
25 | Correct | 1 ms | 336 KB | Output is correct |
26 | Correct | 1 ms | 336 KB | Output is correct |
27 | Correct | 6 ms | 592 KB | Output is correct |
28 | Correct | 11 ms | 592 KB | Output is correct |
29 | Correct | 12 ms | 592 KB | Output is correct |
30 | Correct | 27 ms | 848 KB | Output is correct |
31 | Correct | 27 ms | 676 KB | Output is correct |
32 | Correct | 23 ms | 816 KB | Output is correct |
33 | Correct | 46 ms | 852 KB | Output is correct |
34 | Correct | 2 ms | 336 KB | Output is correct |
35 | Correct | 73 ms | 1096 KB | Output is correct |
36 | Correct | 9 ms | 592 KB | Output is correct |
37 | Correct | 3 ms | 504 KB | Output is correct |
38 | Correct | 2 ms | 336 KB | Output is correct |
39 | Correct | 3 ms | 336 KB | Output is correct |
40 | Correct | 3 ms | 336 KB | Output is correct |
41 | Correct | 3 ms | 336 KB | Output is correct |
42 | Correct | 3 ms | 336 KB | Output is correct |
43 | Correct | 3 ms | 504 KB | Output is correct |
44 | Correct | 3 ms | 336 KB | Output is correct |
45 | Correct | 6 ms | 592 KB | Output is correct |
46 | Runtime error | 2 ms | 592 KB | Execution killed with signal 11 |
47 | Halted | 0 ms | 0 KB | - |