QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#317006 | #8041. Life is Hard and Undecidable, but... | ship2077 | AC ✓ | 0ms | 3972kb | C++14 | 348b | 2024-01-28 11:15:04 | 2024-01-28 11:15:04 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n;
int read(){
int x=0;char ch=getchar();
while (!isdigit(ch)) ch=getchar();
while (isdigit(ch)) x=x*10+ch-48,ch=getchar();
return x;
}
int main(){ n=read()-1;
printf("%d\n",n<<1|1);
for (int i=-n;i<=n;i++)
printf("%d %d\n",i+150,i+150);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3848kb
input:
1
output:
1 150 150
result:
ok n=1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
2
output:
3 149 149 150 150 151 151
result:
ok n=3
Test #3:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
3
output:
5 148 148 149 149 150 150 151 151 152 152
result:
ok n=5
Test #4:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
4
output:
7 147 147 148 148 149 149 150 150 151 151 152 152 153 153
result:
ok n=7
Test #5:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
5
output:
9 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154
result:
ok n=9
Test #6:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
6
output:
11 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155
result:
ok n=11
Test #7:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
7
output:
13 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156
result:
ok n=13
Test #8:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
8
output:
15 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157
result:
ok n=15
Test #9:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
9
output:
17 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158
result:
ok n=17
Test #10:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
10
output:
19 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 159 159
result:
ok n=19
Test #11:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
13
output:
25 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 159 159 160 160 161 161 162 162
result:
ok n=25
Test #12:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
17
output:
33 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 159 159 160 160 161 161 162 162 163 163 164 164 165 165 166 166
result:
ok n=33
Test #13:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
23
output:
45 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 159 159 160 160 161 161 162 162 163 163 164 164 1...
result:
ok n=45
Test #14:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
29
output:
57 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 1...
result:
ok n=57
Test #15:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
31
output:
61 120 120 121 121 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 1...
result:
ok n=61
Test #16:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
37
output:
73 114 114 115 115 116 116 117 117 118 118 119 119 120 120 121 121 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 147 147 148 148 149 149 150 150 1...
result:
ok n=73
Test #17:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
41
output:
81 110 110 111 111 112 112 113 113 114 114 115 115 116 116 117 117 118 118 119 119 120 120 121 121 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 145 145 146 146 1...
result:
ok n=81
Test #18:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
43
output:
85 108 108 109 109 110 110 111 111 112 112 113 113 114 114 115 115 116 116 117 117 118 118 119 119 120 120 121 121 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 143 144 144 1...
result:
ok n=85
Test #19:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
100
output:
199 51 51 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 10...
result:
ok n=199
Test #20:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
85
output:
169 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 100 100 101 101 102 102 103 103 104 104 105 105 106 106 107 107 108 108 109 109 110 110 111 ...
result:
ok n=169
Test #21:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
97
output:
193 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 100 100 101 101 102 ...
result:
ok n=193
Test #22:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
98
output:
195 53 53 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 100 100 101 10...
result:
ok n=195
Test #23:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
99
output:
197 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 100 100 ...
result:
ok n=197
Extra Test:
score: 0
Extra Test Passed