Submission #488565

# Submission time Handle Problem Language Result Execution time Memory
488565 2021-11-19T16:42:05 Z ssense Game (IOI14_game) C++14
100 / 100
331 ms 16436 KB
#include <bits/stdc++.h>
#include "game.h"
#define startt ios_base::sync_with_stdio(false);cin.tie(0);
typedef long long  ll;
using namespace std;
#define vint vector<int>
#define all(v) v.begin(), v.end()
#define MOD 1000000007
#define MOD2 998244353
#define MX 1000000000
#define MXL 1000000000000000000
#define PI (ld)2*acos(0.0)
#define pb push_back
#define sc second
#define fr first
//#define int long long
//#define endl '\n'
#define ld long double
#define NO cout << "NO" << endl
#define YES cout << "YES" << endl

void initialize(int n){}

int cnt[2000];

int hasEdge(int u, int v)
{
	int x = max(u, v);
	cnt[x]++;
	if(cnt[x] == x)
	{
		return 1;
	}
	else
	{
		return 0;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 0 ms 208 KB Output is correct
4 Correct 0 ms 208 KB Output is correct
5 Correct 1 ms 208 KB Output is correct
6 Correct 1 ms 208 KB Output is correct
7 Correct 1 ms 304 KB Output is correct
8 Correct 1 ms 208 KB Output is correct
9 Correct 0 ms 208 KB Output is correct
10 Correct 0 ms 208 KB Output is correct
11 Correct 0 ms 208 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 1 ms 208 KB Output is correct
14 Correct 0 ms 208 KB Output is correct
15 Correct 0 ms 208 KB Output is correct
16 Correct 0 ms 304 KB Output is correct
17 Correct 0 ms 208 KB Output is correct
18 Correct 0 ms 208 KB Output is correct
19 Correct 0 ms 208 KB Output is correct
20 Correct 0 ms 208 KB Output is correct
21 Correct 0 ms 208 KB Output is correct
22 Correct 1 ms 208 KB Output is correct
23 Correct 1 ms 208 KB Output is correct
24 Correct 0 ms 208 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 0 ms 208 KB Output is correct
3 Correct 1 ms 208 KB Output is correct
4 Correct 0 ms 208 KB Output is correct
5 Correct 0 ms 208 KB Output is correct
6 Correct 0 ms 208 KB Output is correct
7 Correct 0 ms 304 KB Output is correct
8 Correct 0 ms 208 KB Output is correct
9 Correct 0 ms 300 KB Output is correct
10 Correct 0 ms 208 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 0 ms 208 KB Output is correct
14 Correct 1 ms 208 KB Output is correct
15 Correct 1 ms 208 KB Output is correct
16 Correct 1 ms 208 KB Output is correct
17 Correct 1 ms 208 KB Output is correct
18 Correct 0 ms 208 KB Output is correct
19 Correct 1 ms 208 KB Output is correct
20 Correct 0 ms 208 KB Output is correct
21 Correct 0 ms 208 KB Output is correct
22 Correct 0 ms 208 KB Output is correct
23 Correct 0 ms 208 KB Output is correct
24 Correct 0 ms 208 KB Output is correct
25 Correct 0 ms 308 KB Output is correct
26 Correct 1 ms 208 KB Output is correct
27 Correct 1 ms 208 KB Output is correct
28 Correct 1 ms 208 KB Output is correct
29 Correct 0 ms 208 KB Output is correct
30 Correct 1 ms 208 KB Output is correct
31 Correct 1 ms 208 KB Output is correct
32 Correct 1 ms 208 KB Output is correct
33 Correct 0 ms 208 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 2 ms 336 KB Output is correct
36 Correct 2 ms 336 KB Output is correct
37 Correct 2 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 336 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 2 ms 336 KB Output is correct
46 Correct 1 ms 316 KB Output is correct
47 Correct 1 ms 336 KB Output is correct
48 Correct 1 ms 336 KB Output is correct
49 Correct 1 ms 336 KB Output is correct
50 Correct 1 ms 336 KB Output is correct
51 Correct 2 ms 336 KB Output is correct
52 Correct 1 ms 336 KB Output is correct
53 Correct 2 ms 336 KB Output is correct
54 Correct 1 ms 336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 0 ms 208 KB Output is correct
4 Correct 0 ms 208 KB Output is correct
5 Correct 0 ms 208 KB Output is correct
6 Correct 0 ms 208 KB Output is correct
7 Correct 0 ms 208 KB Output is correct
8 Correct 0 ms 208 KB Output is correct
9 Correct 0 ms 208 KB Output is correct
10 Correct 0 ms 208 KB Output is correct
11 Correct 0 ms 208 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 0 ms 208 KB Output is correct
14 Correct 0 ms 208 KB Output is correct
15 Correct 0 ms 208 KB Output is correct
16 Correct 0 ms 208 KB Output is correct
17 Correct 0 ms 208 KB Output is correct
18 Correct 1 ms 208 KB Output is correct
19 Correct 0 ms 208 KB Output is correct
20 Correct 1 ms 208 KB Output is correct
21 Correct 0 ms 208 KB Output is correct
22 Correct 0 ms 208 KB Output is correct
23 Correct 0 ms 208 KB Output is correct
24 Correct 1 ms 208 KB Output is correct
25 Correct 1 ms 208 KB Output is correct
26 Correct 1 ms 208 KB Output is correct
27 Correct 1 ms 300 KB Output is correct
28 Correct 1 ms 208 KB Output is correct
29 Correct 1 ms 208 KB Output is correct
30 Correct 0 ms 208 KB Output is correct
31 Correct 0 ms 208 KB Output is correct
32 Correct 0 ms 208 KB Output is correct
33 Correct 0 ms 208 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 1 ms 336 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 336 KB Output is correct
43 Correct 2 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 336 KB Output is correct
46 Correct 1 ms 336 KB Output is correct
47 Correct 1 ms 336 KB Output is correct
48 Correct 1 ms 336 KB Output is correct
49 Correct 1 ms 336 KB Output is correct
50 Correct 1 ms 336 KB Output is correct
51 Correct 1 ms 336 KB Output is correct
52 Correct 1 ms 336 KB Output is correct
53 Correct 1 ms 336 KB Output is correct
54 Correct 1 ms 336 KB Output is correct
55 Correct 28 ms 1984 KB Output is correct
56 Correct 30 ms 2024 KB Output is correct
57 Correct 40 ms 1964 KB Output is correct
58 Correct 29 ms 1968 KB Output is correct
59 Correct 36 ms 2112 KB Output is correct
60 Correct 30 ms 2052 KB Output is correct
61 Correct 29 ms 1932 KB Output is correct
62 Correct 29 ms 2052 KB Output is correct
63 Correct 29 ms 1948 KB Output is correct
64 Correct 28 ms 1980 KB Output is correct
65 Correct 38 ms 2016 KB Output is correct
66 Correct 38 ms 1948 KB Output is correct
67 Correct 29 ms 1948 KB Output is correct
68 Correct 30 ms 1992 KB Output is correct
69 Correct 30 ms 1992 KB Output is correct
70 Correct 30 ms 1992 KB Output is correct
71 Correct 34 ms 2120 KB Output is correct
72 Correct 29 ms 1976 KB Output is correct
73 Correct 28 ms 1948 KB Output is correct
74 Correct 30 ms 1992 KB Output is correct
75 Correct 31 ms 1968 KB Output is correct
76 Correct 63 ms 4296 KB Output is correct
77 Correct 69 ms 4312 KB Output is correct
78 Correct 69 ms 4296 KB Output is correct
79 Correct 65 ms 4260 KB Output is correct
80 Correct 63 ms 4312 KB Output is correct
81 Correct 99 ms 4304 KB Output is correct
82 Correct 62 ms 4348 KB Output is correct
83 Correct 62 ms 4320 KB Output is correct
84 Correct 91 ms 4316 KB Output is correct
85 Correct 112 ms 7400 KB Output is correct
86 Correct 108 ms 7340 KB Output is correct
87 Correct 114 ms 7332 KB Output is correct
88 Correct 106 ms 7368 KB Output is correct
89 Correct 140 ms 7424 KB Output is correct
90 Correct 112 ms 7404 KB Output is correct
91 Correct 109 ms 7324 KB Output is correct
92 Correct 108 ms 7368 KB Output is correct
93 Correct 110 ms 7328 KB Output is correct
94 Correct 252 ms 16284 KB Output is correct
95 Correct 298 ms 16204 KB Output is correct
96 Correct 250 ms 16328 KB Output is correct
97 Correct 331 ms 16328 KB Output is correct
98 Correct 248 ms 16436 KB Output is correct
99 Correct 250 ms 16280 KB Output is correct
100 Correct 251 ms 16328 KB Output is correct