QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#532394#1148. GameWansur0 0ms3852kbC++23302b2024-08-25 03:18:242024-08-25 03:18:25

Judging History

你现在查看的是最新测评结果

  • [2024-08-25 03:18:25]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3852kb
  • [2024-08-25 03:18:24]
  • 提交

answer

#include <bits/stdc++.h>
#include "game.h"

using namespace std;
typedef long long ll;
const int maxn = 2020;

int cnt[maxn];

void initialize(int n){
    return;
}

int hasEdge(int u, int v){
    cnt[u]++, cnt[v]++;
    if(cnt[u] == u + 1 || cnt[v] == v + 1) return 1;
    return 0;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 15
Accepted
time: 0ms
memory: 3824kb

input:

4
0 1
3 0
1 2
0 2
3 1
2 3

output:

1
0
1
0
0
1

result:

ok correct

Test #2:

score: 15
Accepted
time: 0ms
memory: 3716kb

input:

4
0 3
2 0
0 1
1 2
1 3
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #3:

score: 15
Accepted
time: 0ms
memory: 3776kb

input:

4
0 3
1 0
0 2
3 1
1 2
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #4:

score: 15
Accepted
time: 0ms
memory: 3584kb

input:

4
3 1
1 2
0 2
0 3
1 0
3 2

output:

0
1
1
0
0
1

result:

ok correct

Test #5:

score: 15
Accepted
time: 0ms
memory: 3720kb

input:

4
1 2
2 3
2 0
1 0
3 1
0 3

output:

0
0
1
1
0
0

result:

ok correct

Test #6:

score: 15
Accepted
time: 0ms
memory: 3824kb

input:

4
2 0
0 3
1 2
1 0
3 1
3 2

output:

1
0
0
1
0
1

result:

ok correct

Test #7:

score: 15
Accepted
time: 0ms
memory: 3580kb

input:

4
3 0
0 1
1 3
0 2
2 3
1 2

output:

1
0
1
0
0
1

result:

ok correct

Test #8:

score: 15
Accepted
time: 0ms
memory: 3816kb

input:

4
1 0
0 2
2 3
2 1
3 1
0 3

output:

1
0
0
1
0
0

result:

ok correct

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 3712kb

input:

4
0 2
2 3
1 3
2 1
3 0
1 0

output:

1
0
0
1
0
0

result:

wrong answer not correct

Subtask #2:

score: 0
Wrong Answer

Test #25:

score: 27
Accepted
time: 0ms
memory: 3820kb

input:

4
0 1
3 0
1 2
0 2
3 1
2 3

output:

1
0
1
0
0
1

result:

ok correct

Test #26:

score: 27
Accepted
time: 0ms
memory: 3580kb

input:

4
0 3
2 0
0 1
1 2
1 3
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #27:

score: 27
Accepted
time: 0ms
memory: 3624kb

input:

4
0 3
1 0
0 2
3 1
1 2
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #28:

score: 27
Accepted
time: 0ms
memory: 3768kb

input:

4
3 1
1 2
0 2
0 3
1 0
3 2

output:

0
1
1
0
0
1

result:

ok correct

Test #29:

score: 27
Accepted
time: 0ms
memory: 3828kb

input:

4
1 2
2 3
2 0
1 0
3 1
0 3

output:

0
0
1
1
0
0

result:

ok correct

Test #30:

score: 27
Accepted
time: 0ms
memory: 3828kb

input:

4
2 0
0 3
1 2
1 0
3 1
3 2

output:

1
0
0
1
0
1

result:

ok correct

Test #31:

score: 27
Accepted
time: 0ms
memory: 3828kb

input:

4
3 0
0 1
1 3
0 2
2 3
1 2

output:

1
0
1
0
0
1

result:

ok correct

Test #32:

score: 27
Accepted
time: 0ms
memory: 3852kb

input:

4
1 0
0 2
2 3
2 1
3 1
0 3

output:

1
0
0
1
0
0

result:

ok correct

Test #33:

score: 0
Wrong Answer
time: 0ms
memory: 3720kb

input:

4
0 2
2 3
1 3
2 1
3 0
1 0

output:

1
0
0
1
0
0

result:

wrong answer not correct

Subtask #3:

score: 0
Wrong Answer

Test #79:

score: 58
Accepted
time: 0ms
memory: 3724kb

input:

4
0 1
3 0
1 2
0 2
3 1
2 3

output:

1
0
1
0
0
1

result:

ok correct

Test #80:

score: 58
Accepted
time: 0ms
memory: 3724kb

input:

4
0 3
2 0
0 1
1 2
1 3
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #81:

score: 58
Accepted
time: 0ms
memory: 3580kb

input:

4
0 3
1 0
0 2
3 1
1 2
2 3

output:

1
0
0
1
0
1

result:

ok correct

Test #82:

score: 58
Accepted
time: 0ms
memory: 3580kb

input:

4
3 1
1 2
0 2
0 3
1 0
3 2

output:

0
1
1
0
0
1

result:

ok correct

Test #83:

score: 58
Accepted
time: 0ms
memory: 3624kb

input:

4
1 2
2 3
2 0
1 0
3 1
0 3

output:

0
0
1
1
0
0

result:

ok correct

Test #84:

score: 58
Accepted
time: 0ms
memory: 3780kb

input:

4
2 0
0 3
1 2
1 0
3 1
3 2

output:

1
0
0
1
0
1

result:

ok correct

Test #85:

score: 58
Accepted
time: 0ms
memory: 3720kb

input:

4
3 0
0 1
1 3
0 2
2 3
1 2

output:

1
0
1
0
0
1

result:

ok correct

Test #86:

score: 58
Accepted
time: 0ms
memory: 3824kb

input:

4
1 0
0 2
2 3
2 1
3 1
0 3

output:

1
0
0
1
0
0

result:

ok correct

Test #87:

score: 0
Wrong Answer
time: 0ms
memory: 3724kb

input:

4
0 2
2 3
1 3
2 1
3 0
1 0

output:

1
0
0
1
0
0

result:

wrong answer not correct