QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#372822#5266. Absolutely Flatkevinyang#AC ✓1ms3836kbC++17406b2024-03-31 19:38:012024-03-31 19:38:03

Judging History

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

  • [2024-03-31 19:38:03]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3836kb
  • [2024-03-31 19:38:01]
  • 提交

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: 1ms
memory: 3536kb

input:

10
10
10
10
5

output:

1

result:

ok 1 number(s): "1"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

13
13
5
13
8

output:

1

result:

ok 1 number(s): "1"

Test #3:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

50
42
42
50
8

output:

0

result:

ok 1 number(s): "0"

Test #4:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

20
40
10
30
2

output:

0

result:

ok 1 number(s): "0"

Test #5:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

1
1
1
1
1

output:

1

result:

ok 1 number(s): "1"

Test #6:

score: 0
Accepted
time: 0ms
memory: 3564kb

input:

7
3
8
9
1

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: 0
Accepted
time: 0ms
memory: 3836kb

input:

26
72
52
80
74

output:

0

result:

ok 1 number(s): "0"

Test #8:

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

input:

99
98
96
94
91

output:

0

result:

ok 1 number(s): "0"

Test #9:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

100
100
100
99
100

output:

0

result:

ok 1 number(s): "0"

Test #10:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

100
100
100
100
100

output:

1

result:

ok 1 number(s): "1"

Test #11:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

7
7
7
7
3

output:

1

result:

ok 1 number(s): "1"

Test #12:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

26
26
26
26
72

output:

1

result:

ok 1 number(s): "1"

Test #13:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

99
99
99
99
98

output:

1

result:

ok 1 number(s): "1"

Test #14:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

10
62
62
62
52

output:

1

result:

ok 1 number(s): "1"

Test #15:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

3
1
3
3
2

output:

1

result:

ok 1 number(s): "1"

Test #16:

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

input:

34
34
5
34
29

output:

1

result:

ok 1 number(s): "1"

Test #17:

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

input:

69
69
69
10
59

output:

1

result:

ok 1 number(s): "1"

Test #18:

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

input:

4
94
94
94
90

output:

1

result:

ok 1 number(s): "1"

Test #19:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

96
33
96
96
63

output:

1

result:

ok 1 number(s): "1"

Test #20:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

94
94
54
94
40

output:

1

result:

ok 1 number(s): "1"

Test #21:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

96
96
96
92
4

output:

1

result:

ok 1 number(s): "1"

Test #22:

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

input:

73
73
65
73
8

output:

1

result:

ok 1 number(s): "1"

Test #23:

score: 0
Accepted
time: 0ms
memory: 3564kb

input:

9
9
9
7
1

output:

0

result:

ok 1 number(s): "0"

Test #24:

score: 0
Accepted
time: 1ms
memory: 3524kb

input:

44
42
43
44
1

output:

0

result:

ok 1 number(s): "0"

Test #25:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

79
79
79
59
5

output:

0

result:

ok 1 number(s): "0"

Test #26:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

5
7
11
11
2

output:

0

result:

ok 1 number(s): "0"

Test #27:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

36
36
24
36
6

output:

0

result:

ok 1 number(s): "0"

Test #28:

score: 0
Accepted
time: 1ms
memory: 3760kb

input:

54
81
54
72
9

output:

0

result:

ok 1 number(s): "0"

Test #29:

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

input:

13
1
4
10
3

output:

0

result:

ok 1 number(s): "0"

Test #30:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

47
47
46
43
1

output:

0

result:

ok 1 number(s): "0"

Test #31:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

65
65
67
67
2

output:

0

result:

ok 1 number(s): "0"

Test #32:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

40
34
36
36
2

output:

0

result:

ok 1 number(s): "0"

Test #33:

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

input:

19
19
31
23
2

output:

0

result:

ok 1 number(s): "0"

Test #34:

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

input:

83
74
68
77
3

output:

0

result:

ok 1 number(s): "0"

Test #35:

score: 0
Accepted
time: 0ms
memory: 3628kb

input:

6
6
6
6
7

output:

1

result:

ok 1 number(s): "1"

Test #36:

score: 0
Accepted
time: 0ms
memory: 3492kb

input:

1
1
1
1
3

output:

1

result:

ok 1 number(s): "1"

Test #37:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

3
3
3
3
3

output:

1

result:

ok 1 number(s): "1"

Test #38:

score: 0
Accepted
time: 0ms
memory: 3528kb

input:

39
27
37
29
2

output:

0

result:

ok 1 number(s): "0"

Test #39:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

75
75
75
75
14

output:

1

result:

ok 1 number(s): "1"

Test #40:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

5
11
11
11
6

output:

1

result:

ok 1 number(s): "1"

Test #41:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

46
20
46
46
26

output:

1

result:

ok 1 number(s): "1"

Test #42:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

56
56
81
81
25

output:

0

result:

ok 1 number(s): "0"

Test #43:

score: 0
Accepted
time: 0ms
memory: 3520kb

input:

13
13
11
13
2

output:

1

result:

ok 1 number(s): "1"

Test #44:

score: 0
Accepted
time: 0ms
memory: 3488kb

input:

11
45
11
45
34

output:

0

result:

ok 1 number(s): "0"

Test #45:

score: 0
Accepted
time: 0ms
memory: 3488kb

input:

84
32
32
84
52

output:

0

result:

ok 1 number(s): "0"

Test #46:

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

input:

9
9
9
16
7

output:

0

result:

ok 1 number(s): "0"

Test #47:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

51
51
51
40
11

output:

1

result:

ok 1 number(s): "1"

Test #48:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

60
82
82
60
22

output:

0

result:

ok 1 number(s): "0"

Test #49:

score: 0
Accepted
time: 0ms
memory: 3484kb

input:

97
15
97
15
82

output:

0

result:

ok 1 number(s): "0"

Test #50:

score: 0
Accepted
time: 0ms
memory: 3532kb

input:

23
23
37
23
14

output:

0

result:

ok 1 number(s): "0"

Test #51:

score: 0
Accepted
time: 1ms
memory: 3524kb

input:

68
68
13
13
55

output:

0

result:

ok 1 number(s): "0"

Test #52:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

1
4
1
1
3

output:

0

result:

ok 1 number(s): "0"

Test #53:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

35
32
32
32
3

output:

0

result:

ok 1 number(s): "0"

Test #54:

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

input:

16
16
16
16
58

output:

1

result:

ok 1 number(s): "1"