QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#746806#9587. 结课风云LYY_yyyy#WA 0ms3776kbC++14422b2024-11-14 15:36:062024-11-14 15:36:06

Judging History

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

  • [2024-11-14 15:36:06]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3776kb
  • [2024-11-14 15:36:06]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0)->sync_with_stdio(0);
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  vector<pair<int, int>> vec(n);
  for (int i = 1; i <= n; i++) {
    int x, y;
    cin >> x >> y;
    vec[i - 1] = {x, y};
  }
  int d;
  cin >> d;
  int ans = 0;
  for (auto [x, y] : vec) ans += x + y < c && x + y + d >= c;
  cout << ans << '\n';
  return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
40 60 60
20 25
10 40
25 30
35 50
40 60
10

output:

2

result:

ok single line: '2'

Test #2:

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

input:

1
0 100 0
0 52
0

output:

0

result:

ok single line: '0'

Test #3:

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

input:

1000
100 0 100
48 0
43 0
67 0
9 0
97 0
2 0
35 0
47 0
81 0
29 0
96 0
19 0
100 0
14 0
79 0
89 0
37 0
54 0
93 0
9 0
23 0
44 0
37 0
99 0
5 0
39 0
31 0
24 0
65 0
87 0
100 0
100 0
51 0
62 0
92 0
33 0
73 0
53 0
49 0
65 0
29 0
44 0
44 0
29 0
80 0
60 0
79 0
84 0
16 0
99 0
14 0
68 0
96 0
42 0
8 0
24 0
80 0
17...

output:

986

result:

ok single line: '986'

Test #4:

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

input:

100
50 50 60
31 15
22 16
14 0
4 7
16 30
40 8
43 38
39 44
39 21
24 27
31 2
11 45
40 36
0 39
50 13
37 31
3 47
35 31
6 28
31 0
3 1
2 26
17 14
5 19
34 30
47 40
36 41
36 27
24 33
42 31
49 10
46 44
11 47
14 31
36 10
6 42
17 10
12 24
39 18
11 11
9 25
22 39
48 50
7 23
47 41
1 6
17 50
9 8
47 36
37 14
29 37
3...

output:

16

result:

ok single line: '16'

Test #5:

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

input:

500
100 0 80
36 0
3 0
32 0
44 0
87 0
77 0
98 0
40 0
78 0
99 0
96 0
21 0
90 0
86 0
18 0
3 0
36 0
69 0
89 0
94 0
6 0
89 0
50 0
66 0
58 0
54 0
2 0
95 0
75 0
76 0
96 0
41 0
36 0
83 0
100 0
25 0
99 0
61 0
51 0
71 0
92 0
56 0
45 0
58 0
82 0
78 0
66 0
72 0
52 0
76 0
87 0
1 0
50 0
94 0
31 0
80 0
72 0
21 0
5...

output:

28

result:

ok single line: '28'

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 3636kb

input:

1000
30 70 50
6 2
29 20
6 30
6 56
22 47
2 14
9 8
1 59
21 33
20 31
13 26
6 51
10 24
3 49
28 20
5 3
2 52
0 30
7 45
18 9
9 2
2 37
10 18
18 60
22 4
1 37
10 0
7 6
26 65
0 66
2 9
2 13
29 41
13 59
23 48
11 5
1 6
14 8
17 15
29 66
14 14
2 47
11 20
27 7
11 66
5 10
3 65
30 34
26 1
30 38
10 54
25 35
20 59
20 51...

output:

189

result:

wrong answer 1st lines differ - expected: '134', found: '189'