QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#726715#5266. Absolutely Flatsamandarhacker1AC ✓1ms3696kbC++14441b2024-11-09 06:21:302024-11-09 06:21:31

Judging History

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

  • [2024-11-09 06:21:31]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3696kb
  • [2024-11-09 06:21:30]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    int a[4];
    int b;
    for(int i = 0; i < 4; i++){
        cin >> a[i];
    }
    cin >> b;
    sort(a, a + 4);
    if(a[0] == a[3]){
        cout << 1;return 0;
    }
    if(a[0] < a[1] && a[0] + b == a[1] && a[1] == a[3]){
        cout << 1;return 0;   
    }
    cout << 0;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3636kb

input:

10
10
10
10
5

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

13
13
5
13
8

output:

1

result:

ok 1 number(s): "1"

Test #3:

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

input:

50
42
42
50
8

output:

0

result:

ok 1 number(s): "0"

Test #4:

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

input:

20
40
10
30
2

output:

0

result:

ok 1 number(s): "0"

Test #5:

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

input:

1
1
1
1
1

output:

1

result:

ok 1 number(s): "1"

Test #6:

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

input:

7
3
8
9
1

output:

0

result:

ok 1 number(s): "0"

Test #7:

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

input:

26
72
52
80
74

output:

0

result:

ok 1 number(s): "0"

Test #8:

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

input:

99
98
96
94
91

output:

0

result:

ok 1 number(s): "0"

Test #9:

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

input:

100
100
100
99
100

output:

0

result:

ok 1 number(s): "0"

Test #10:

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

input:

100
100
100
100
100

output:

1

result:

ok 1 number(s): "1"

Test #11:

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

input:

7
7
7
7
3

output:

1

result:

ok 1 number(s): "1"

Test #12:

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

input:

26
26
26
26
72

output:

1

result:

ok 1 number(s): "1"

Test #13:

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

input:

99
99
99
99
98

output:

1

result:

ok 1 number(s): "1"

Test #14:

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

input:

10
62
62
62
52

output:

1

result:

ok 1 number(s): "1"

Test #15:

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

input:

3
1
3
3
2

output:

1

result:

ok 1 number(s): "1"

Test #16:

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

input:

34
34
5
34
29

output:

1

result:

ok 1 number(s): "1"

Test #17:

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

input:

69
69
69
10
59

output:

1

result:

ok 1 number(s): "1"

Test #18:

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

input:

4
94
94
94
90

output:

1

result:

ok 1 number(s): "1"

Test #19:

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

input:

96
33
96
96
63

output:

1

result:

ok 1 number(s): "1"

Test #20:

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

input:

94
94
54
94
40

output:

1

result:

ok 1 number(s): "1"

Test #21:

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

input:

96
96
96
92
4

output:

1

result:

ok 1 number(s): "1"

Test #22:

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

input:

73
73
65
73
8

output:

1

result:

ok 1 number(s): "1"

Test #23:

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

input:

9
9
9
7
1

output:

0

result:

ok 1 number(s): "0"

Test #24:

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

input:

44
42
43
44
1

output:

0

result:

ok 1 number(s): "0"

Test #25:

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

input:

79
79
79
59
5

output:

0

result:

ok 1 number(s): "0"

Test #26:

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

input:

5
7
11
11
2

output:

0

result:

ok 1 number(s): "0"

Test #27:

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

input:

36
36
24
36
6

output:

0

result:

ok 1 number(s): "0"

Test #28:

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

input:

54
81
54
72
9

output:

0

result:

ok 1 number(s): "0"

Test #29:

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

input:

13
1
4
10
3

output:

0

result:

ok 1 number(s): "0"

Test #30:

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

input:

47
47
46
43
1

output:

0

result:

ok 1 number(s): "0"

Test #31:

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

input:

65
65
67
67
2

output:

0

result:

ok 1 number(s): "0"

Test #32:

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

input:

40
34
36
36
2

output:

0

result:

ok 1 number(s): "0"

Test #33:

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

input:

19
19
31
23
2

output:

0

result:

ok 1 number(s): "0"

Test #34:

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

input:

83
74
68
77
3

output:

0

result:

ok 1 number(s): "0"

Test #35:

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

input:

6
6
6
6
7

output:

1

result:

ok 1 number(s): "1"

Test #36:

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

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: 3580kb

input:

39
27
37
29
2

output:

0

result:

ok 1 number(s): "0"

Test #39:

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

input:

75
75
75
75
14

output:

1

result:

ok 1 number(s): "1"

Test #40:

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

input:

5
11
11
11
6

output:

1

result:

ok 1 number(s): "1"

Test #41:

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

input:

46
20
46
46
26

output:

1

result:

ok 1 number(s): "1"

Test #42:

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

input:

56
56
81
81
25

output:

0

result:

ok 1 number(s): "0"

Test #43:

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

input:

13
13
11
13
2

output:

1

result:

ok 1 number(s): "1"

Test #44:

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

input:

11
45
11
45
34

output:

0

result:

ok 1 number(s): "0"

Test #45:

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

input:

84
32
32
84
52

output:

0

result:

ok 1 number(s): "0"

Test #46:

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

input:

9
9
9
16
7

output:

0

result:

ok 1 number(s): "0"

Test #47:

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

input:

51
51
51
40
11

output:

1

result:

ok 1 number(s): "1"

Test #48:

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

input:

60
82
82
60
22

output:

0

result:

ok 1 number(s): "0"

Test #49:

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

input:

97
15
97
15
82

output:

0

result:

ok 1 number(s): "0"

Test #50:

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

input:

23
23
37
23
14

output:

0

result:

ok 1 number(s): "0"

Test #51:

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

input:

68
68
13
13
55

output:

0

result:

ok 1 number(s): "0"

Test #52:

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

input:

1
4
1
1
3

output:

0

result:

ok 1 number(s): "0"

Test #53:

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

input:

35
32
32
32
3

output:

0

result:

ok 1 number(s): "0"

Test #54:

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

input:

16
16
16
16
58

output:

1

result:

ok 1 number(s): "1"