QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#548785#8041. Life is Hard and Undecidable, but...ucup-team3474AC ✓0ms3956kbC++20453b2024-09-05 20:51:342024-09-05 20:51:35

Judging History

This is the latest submission verdict.

  • [2024-09-05 20:51:35]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3956kb
  • [2024-09-05 20:51:34]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
const int N=1919810;
typedef long long ll;
typedef pair<ll,ll> PII;
ll n,m,k;
ll a[N],b[N];
char s[N];

void __(){
    scanf("%d",&n);
    cout<<2*n-1<<"\n";
    puts("150 150");
    for(int i=1;i<n;i++){
        printf("%d %d\n",150+i,150+i);
        printf("%d %d\n",150-i,150-i);
        
    }
}


int main(){
    int _=1;
    // cin>>_;
    while(_--){
        __();
    }
}

详细

Test #1:

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

input:

1

output:

1
150 150

result:

ok n=1

Test #2:

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

input:

2

output:

3
150 150
151 151
149 149

result:

ok n=3

Test #3:

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

input:

3

output:

5
150 150
151 151
149 149
152 152
148 148

result:

ok n=5

Test #4:

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

input:

4

output:

7
150 150
151 151
149 149
152 152
148 148
153 153
147 147

result:

ok n=7

Test #5:

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

input:

5

output:

9
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146

result:

ok n=9

Test #6:

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

input:

6

output:

11
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145

result:

ok n=11

Test #7:

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

input:

7

output:

13
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144

result:

ok n=13

Test #8:

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

input:

8

output:

15
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143

result:

ok n=15

Test #9:

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

input:

9

output:

17
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142

result:

ok n=17

Test #10:

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

input:

10

output:

19
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141

result:

ok n=19

Test #11:

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

input:

13

output:

25
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138

result:

ok n=25

Test #12:

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

input:

17

output:

33
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134

result:

ok n=33

Test #13:

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

input:

23

output:

45
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=45

Test #14:

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

input:

29

output:

57
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=57

Test #15:

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

input:

31

output:

61
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=61

Test #16:

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

input:

37

output:

73
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=73

Test #17:

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

input:

41

output:

81
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=81

Test #18:

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

input:

43

output:

85
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
1...

result:

ok n=85

Test #19:

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

input:

100

output:

199
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
...

result:

ok n=199

Test #20:

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

input:

85

output:

169
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
...

result:

ok n=169

Test #21:

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

input:

97

output:

193
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
...

result:

ok n=193

Test #22:

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

input:

98

output:

195
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
...

result:

ok n=195

Test #23:

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

input:

99

output:

197
150 150
151 151
149 149
152 152
148 148
153 153
147 147
154 154
146 146
155 155
145 145
156 156
144 144
157 157
143 143
158 158
142 142
159 159
141 141
160 160
140 140
161 161
139 139
162 162
138 138
163 163
137 137
164 164
136 136
165 165
135 135
166 166
134 134
167 167
133 133
168 168
132 132
...

result:

ok n=197

Extra Test:

score: 0
Extra Test Passed