QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#708532 | #5266. Absolutely Flat | TheZone | AC ✓ | 0ms | 3848kb | C++20 | 480b | 2024-11-03 23:14:30 | 2024-11-03 23:14:32 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
cin.tie(nullptr)->sync_with_stdio(false);
vector<int>a(4);
int b;
for(int i = 0; i<4; i++){
cin >> a[i];
}
cin >> b;
sort(a.begin(),a.end());
if(a[0] == a[3]){
cout << "1\n";
return 0;
}
if(a[1] == a[3] && a[0] + b == a[1]){
cout << "1\n";
return 0;
}
cout << "0\n";
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3616kb
input:
10 10 10 10 5
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
13 13 5 13 8
output:
1
result:
ok 1 number(s): "1"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
50 42 42 50 8
output:
0
result:
ok 1 number(s): "0"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
20 40 10 30 2
output:
0
result:
ok 1 number(s): "0"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 1 1 1 1
output:
1
result:
ok 1 number(s): "1"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
7 3 8 9 1
output:
0
result:
ok 1 number(s): "0"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
26 72 52 80 74
output:
0
result:
ok 1 number(s): "0"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
99 98 96 94 91
output:
0
result:
ok 1 number(s): "0"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
100 100 100 99 100
output:
0
result:
ok 1 number(s): "0"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
100 100 100 100 100
output:
1
result:
ok 1 number(s): "1"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
7 7 7 7 3
output:
1
result:
ok 1 number(s): "1"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
26 26 26 26 72
output:
1
result:
ok 1 number(s): "1"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
99 99 99 99 98
output:
1
result:
ok 1 number(s): "1"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
10 62 62 62 52
output:
1
result:
ok 1 number(s): "1"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
3 1 3 3 2
output:
1
result:
ok 1 number(s): "1"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
34 34 5 34 29
output:
1
result:
ok 1 number(s): "1"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
69 69 69 10 59
output:
1
result:
ok 1 number(s): "1"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
4 94 94 94 90
output:
1
result:
ok 1 number(s): "1"
Test #19:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
96 33 96 96 63
output:
1
result:
ok 1 number(s): "1"
Test #20:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
94 94 54 94 40
output:
1
result:
ok 1 number(s): "1"
Test #21:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
96 96 96 92 4
output:
1
result:
ok 1 number(s): "1"
Test #22:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
73 73 65 73 8
output:
1
result:
ok 1 number(s): "1"
Test #23:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
9 9 9 7 1
output:
0
result:
ok 1 number(s): "0"
Test #24:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
44 42 43 44 1
output:
0
result:
ok 1 number(s): "0"
Test #25:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
79 79 79 59 5
output:
0
result:
ok 1 number(s): "0"
Test #26:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
5 7 11 11 2
output:
0
result:
ok 1 number(s): "0"
Test #27:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
36 36 24 36 6
output:
0
result:
ok 1 number(s): "0"
Test #28:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
54 81 54 72 9
output:
0
result:
ok 1 number(s): "0"
Test #29:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
13 1 4 10 3
output:
0
result:
ok 1 number(s): "0"
Test #30:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
47 47 46 43 1
output:
0
result:
ok 1 number(s): "0"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
65 65 67 67 2
output:
0
result:
ok 1 number(s): "0"
Test #32:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
40 34 36 36 2
output:
0
result:
ok 1 number(s): "0"
Test #33:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
19 19 31 23 2
output:
0
result:
ok 1 number(s): "0"
Test #34:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
83 74 68 77 3
output:
0
result:
ok 1 number(s): "0"
Test #35:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
6 6 6 6 7
output:
1
result:
ok 1 number(s): "1"
Test #36:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1 1 1 1 3
output:
1
result:
ok 1 number(s): "1"
Test #37:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
3 3 3 3 3
output:
1
result:
ok 1 number(s): "1"
Test #38:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
39 27 37 29 2
output:
0
result:
ok 1 number(s): "0"
Test #39:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
75 75 75 75 14
output:
1
result:
ok 1 number(s): "1"
Test #40:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
5 11 11 11 6
output:
1
result:
ok 1 number(s): "1"
Test #41:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
46 20 46 46 26
output:
1
result:
ok 1 number(s): "1"
Test #42:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
56 56 81 81 25
output:
0
result:
ok 1 number(s): "0"
Test #43:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
13 13 11 13 2
output:
1
result:
ok 1 number(s): "1"
Test #44:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
11 45 11 45 34
output:
0
result:
ok 1 number(s): "0"
Test #45:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
84 32 32 84 52
output:
0
result:
ok 1 number(s): "0"
Test #46:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
9 9 9 16 7
output:
0
result:
ok 1 number(s): "0"
Test #47:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
51 51 51 40 11
output:
1
result:
ok 1 number(s): "1"
Test #48:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
60 82 82 60 22
output:
0
result:
ok 1 number(s): "0"
Test #49:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
97 15 97 15 82
output:
0
result:
ok 1 number(s): "0"
Test #50:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
23 23 37 23 14
output:
0
result:
ok 1 number(s): "0"
Test #51:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
68 68 13 13 55
output:
0
result:
ok 1 number(s): "0"
Test #52:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1 4 1 1 3
output:
0
result:
ok 1 number(s): "0"
Test #53:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
35 32 32 32 3
output:
0
result:
ok 1 number(s): "0"
Test #54:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
16 16 16 16 58
output:
1
result:
ok 1 number(s): "1"