QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#537104#8041. Life is Hard and Undecidable, but...rotcar07AC ✓0ms3720kbC++14182b2024-08-29 20:26:302024-08-29 20:26:31

Judging History

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

  • [2024-08-29 20:26:31]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3720kb
  • [2024-08-29 20:26:30]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
constexpr int maxn=1e5+5;
int n;
int main(){
    cin>>n;n*=2;cout<<n<<'\n';
    for(int j=1;j<=n;j++) cout<<j<<' '<<n+1-j<<'\n';
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

2
1 2
2 1

result:

ok n=2

Test #2:

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

input:

2

output:

4
1 4
2 3
3 2
4 1

result:

ok n=4

Test #3:

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

input:

3

output:

6
1 6
2 5
3 4
4 3
5 2
6 1

result:

ok n=6

Test #4:

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

input:

4

output:

8
1 8
2 7
3 6
4 5
5 4
6 3
7 2
8 1

result:

ok n=8

Test #5:

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

input:

5

output:

10
1 10
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
10 1

result:

ok n=10

Test #6:

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

input:

6

output:

12
1 12
2 11
3 10
4 9
5 8
6 7
7 6
8 5
9 4
10 3
11 2
12 1

result:

ok n=12

Test #7:

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

input:

7

output:

14
1 14
2 13
3 12
4 11
5 10
6 9
7 8
8 7
9 6
10 5
11 4
12 3
13 2
14 1

result:

ok n=14

Test #8:

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

input:

8

output:

16
1 16
2 15
3 14
4 13
5 12
6 11
7 10
8 9
9 8
10 7
11 6
12 5
13 4
14 3
15 2
16 1

result:

ok n=16

Test #9:

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

input:

9

output:

18
1 18
2 17
3 16
4 15
5 14
6 13
7 12
8 11
9 10
10 9
11 8
12 7
13 6
14 5
15 4
16 3
17 2
18 1

result:

ok n=18

Test #10:

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

input:

10

output:

20
1 20
2 19
3 18
4 17
5 16
6 15
7 14
8 13
9 12
10 11
11 10
12 9
13 8
14 7
15 6
16 5
17 4
18 3
19 2
20 1

result:

ok n=20

Test #11:

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

input:

13

output:

26
1 26
2 25
3 24
4 23
5 22
6 21
7 20
8 19
9 18
10 17
11 16
12 15
13 14
14 13
15 12
16 11
17 10
18 9
19 8
20 7
21 6
22 5
23 4
24 3
25 2
26 1

result:

ok n=26

Test #12:

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

input:

17

output:

34
1 34
2 33
3 32
4 31
5 30
6 29
7 28
8 27
9 26
10 25
11 24
12 23
13 22
14 21
15 20
16 19
17 18
18 17
19 16
20 15
21 14
22 13
23 12
24 11
25 10
26 9
27 8
28 7
29 6
30 5
31 4
32 3
33 2
34 1

result:

ok n=34

Test #13:

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

input:

23

output:

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

result:

ok n=46

Test #14:

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

input:

29

output:

58
1 58
2 57
3 56
4 55
5 54
6 53
7 52
8 51
9 50
10 49
11 48
12 47
13 46
14 45
15 44
16 43
17 42
18 41
19 40
20 39
21 38
22 37
23 36
24 35
25 34
26 33
27 32
28 31
29 30
30 29
31 28
32 27
33 26
34 25
35 24
36 23
37 22
38 21
39 20
40 19
41 18
42 17
43 16
44 15
45 14
46 13
47 12
48 11
49 10
50 9
51 8
52...

result:

ok n=58

Test #15:

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

input:

31

output:

62
1 62
2 61
3 60
4 59
5 58
6 57
7 56
8 55
9 54
10 53
11 52
12 51
13 50
14 49
15 48
16 47
17 46
18 45
19 44
20 43
21 42
22 41
23 40
24 39
25 38
26 37
27 36
28 35
29 34
30 33
31 32
32 31
33 30
34 29
35 28
36 27
37 26
38 25
39 24
40 23
41 22
42 21
43 20
44 19
45 18
46 17
47 16
48 15
49 14
50 13
51 12
...

result:

ok n=62

Test #16:

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

input:

37

output:

74
1 74
2 73
3 72
4 71
5 70
6 69
7 68
8 67
9 66
10 65
11 64
12 63
13 62
14 61
15 60
16 59
17 58
18 57
19 56
20 55
21 54
22 53
23 52
24 51
25 50
26 49
27 48
28 47
29 46
30 45
31 44
32 43
33 42
34 41
35 40
36 39
37 38
38 37
39 36
40 35
41 34
42 33
43 32
44 31
45 30
46 29
47 28
48 27
49 26
50 25
51 24
...

result:

ok n=74

Test #17:

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

input:

41

output:

82
1 82
2 81
3 80
4 79
5 78
6 77
7 76
8 75
9 74
10 73
11 72
12 71
13 70
14 69
15 68
16 67
17 66
18 65
19 64
20 63
21 62
22 61
23 60
24 59
25 58
26 57
27 56
28 55
29 54
30 53
31 52
32 51
33 50
34 49
35 48
36 47
37 46
38 45
39 44
40 43
41 42
42 41
43 40
44 39
45 38
46 37
47 36
48 35
49 34
50 33
51 32
...

result:

ok n=82

Test #18:

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

input:

43

output:

86
1 86
2 85
3 84
4 83
5 82
6 81
7 80
8 79
9 78
10 77
11 76
12 75
13 74
14 73
15 72
16 71
17 70
18 69
19 68
20 67
21 66
22 65
23 64
24 63
25 62
26 61
27 60
28 59
29 58
30 57
31 56
32 55
33 54
34 53
35 52
36 51
37 50
38 49
39 48
40 47
41 46
42 45
43 44
44 43
45 42
46 41
47 40
48 39
49 38
50 37
51 36
...

result:

ok n=86

Test #19:

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

input:

100

output:

200
1 200
2 199
3 198
4 197
5 196
6 195
7 194
8 193
9 192
10 191
11 190
12 189
13 188
14 187
15 186
16 185
17 184
18 183
19 182
20 181
21 180
22 179
23 178
24 177
25 176
26 175
27 174
28 173
29 172
30 171
31 170
32 169
33 168
34 167
35 166
36 165
37 164
38 163
39 162
40 161
41 160
42 159
43 158
44 1...

result:

ok n=200

Test #20:

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

input:

85

output:

170
1 170
2 169
3 168
4 167
5 166
6 165
7 164
8 163
9 162
10 161
11 160
12 159
13 158
14 157
15 156
16 155
17 154
18 153
19 152
20 151
21 150
22 149
23 148
24 147
25 146
26 145
27 144
28 143
29 142
30 141
31 140
32 139
33 138
34 137
35 136
36 135
37 134
38 133
39 132
40 131
41 130
42 129
43 128
44 1...

result:

ok n=170

Test #21:

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

input:

97

output:

194
1 194
2 193
3 192
4 191
5 190
6 189
7 188
8 187
9 186
10 185
11 184
12 183
13 182
14 181
15 180
16 179
17 178
18 177
19 176
20 175
21 174
22 173
23 172
24 171
25 170
26 169
27 168
28 167
29 166
30 165
31 164
32 163
33 162
34 161
35 160
36 159
37 158
38 157
39 156
40 155
41 154
42 153
43 152
44 1...

result:

ok n=194

Test #22:

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

input:

98

output:

196
1 196
2 195
3 194
4 193
5 192
6 191
7 190
8 189
9 188
10 187
11 186
12 185
13 184
14 183
15 182
16 181
17 180
18 179
19 178
20 177
21 176
22 175
23 174
24 173
25 172
26 171
27 170
28 169
29 168
30 167
31 166
32 165
33 164
34 163
35 162
36 161
37 160
38 159
39 158
40 157
41 156
42 155
43 154
44 1...

result:

ok n=196

Test #23:

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

input:

99

output:

198
1 198
2 197
3 196
4 195
5 194
6 193
7 192
8 191
9 190
10 189
11 188
12 187
13 186
14 185
15 184
16 183
17 182
18 181
19 180
20 179
21 178
22 177
23 176
24 175
25 174
26 173
27 172
28 171
29 170
30 169
31 168
32 167
33 166
34 165
35 164
36 163
37 162
38 161
39 160
40 159
41 158
42 157
43 156
44 1...

result:

ok n=198

Extra Test:

score: 0
Extra Test Passed