QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#624359#8041. Life is Hard and Undecidable, but...OrthosAC ✓0ms3728kbC++17360b2024-10-09 15:39:482024-10-09 15:39:49

Judging History

This is the latest submission verdict.

  • [2024-10-09 15:39:49]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3728kb
  • [2024-10-09 15:39:48]
  • Submitted

answer

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int t;

int n,k;
int a[100005],b[100005];
priority_queue<int> qa,qb;
ll suma,sumb;
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    cin>>n;
    int ans=2*n-1;
    cout<<ans<<"\n";
    for(int i=1;i<=ans;i++){
        cout<<i<<" "<<i<<"\n";
    }
    return 0;
}

詳細信息

Test #1:

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

input:

1

output:

1
1 1

result:

ok n=1

Test #2:

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

input:

2

output:

3
1 1
2 2
3 3

result:

ok n=3

Test #3:

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

input:

3

output:

5
1 1
2 2
3 3
4 4
5 5

result:

ok n=5

Test #4:

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

input:

4

output:

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

result:

ok n=7

Test #5:

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

input:

5

output:

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

result:

ok n=9

Test #6:

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

input:

6

output:

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

result:

ok n=11

Test #7:

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

input:

7

output:

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

result:

ok n=13

Test #8:

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

input:

8

output:

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

result:

ok n=15

Test #9:

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

input:

9

output:

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

result:

ok n=17

Test #10:

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

input:

10

output:

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

result:

ok n=19

Test #11:

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

input:

13

output:

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

result:

ok n=25

Test #12:

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

input:

17

output:

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

result:

ok n=33

Test #13:

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

input:

23

output:

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

result:

ok n=45

Test #14:

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

input:

29

output:

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

result:

ok n=57

Test #15:

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

input:

31

output:

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

result:

ok n=61

Test #16:

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

input:

37

output:

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

result:

ok n=73

Test #17:

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

input:

41

output:

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

result:

ok n=81

Test #18:

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

input:

43

output:

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

result:

ok n=85

Test #19:

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

input:

100

output:

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

result:

ok n=199

Test #20:

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

input:

85

output:

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

result:

ok n=169

Test #21:

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

input:

97

output:

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

result:

ok n=193

Test #22:

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

input:

98

output:

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

result:

ok n=195

Test #23:

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

input:

99

output:

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

result:

ok n=197

Extra Test:

score: 0
Extra Test Passed