QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#203002#4005. FrogHuangHanShengAC ✓17ms4440kbC++171.1kb2023-10-06 14:33:522023-10-06 14:33:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
0 0
0 90
180 0

output:

0
1.000000000 0.000000000
2
1.000000000 0.000000000
1.000000000 1.000000000
0.000000000 1.000000000
4
-1.000000000 0.000000000
-1.000000000 -1.000000000
-0.000000000 -1.000000000
1.000000000 -1.000000000
1.000000000 -0.000000000

result:

ok ok

Test #2:

score: 0
Accepted
time: 17ms
memory: 4284kb

input:

10000
194 96
89 164
139 41
323 35
185 221
0 275
53 116
233 79
209 91
236 12
94 291
332 293
207 31
133 329
60 114
1 91
273 103
69 193
220 303
100 118
42 15
331 201
26 103
347 292
184 148
307 197
84 326
52 224
257 27
3 99
310 26
138 288
112 17
206 159
302 104
58 121
276 268
236 134
281 173
147 128
72 ...

output:

3
-0.970295726 -0.241921896
-1.212217622 0.728373831
-0.850392697 1.660619895
-0.104528463 0.994521895
2
0.017452406 0.999847695
-0.943809290 1.275485051
-0.961261696 0.275637356
3
-0.754709580 0.656059029
-0.098650551 1.410768609
0.872534969 1.649093358
0.754709580 0.656059029
2
0.798635510 -0.6018...

result:

ok ok

Test #3:

score: 0
Accepted
time: 17ms
memory: 4320kb

input:

10000
314 60
275 193
40 10
10 63
165 179
319 67
47 253
268 76
132 305
95 212
83 236
161 36
104 264
354 142
213 8
155 146
148 15
314 90
230 218
322 69
23 9
296 167
263 26
327 296
210 14
221 49
193 338
228 90
47 48
42 167
293 283
9 342
175 62
223 266
181 118
207 51
131 331
215 284
297 84
136 244
3 232...

output:

3
0.694658370 -0.719339800
1.413998171 -0.024681430
1.494359845 0.972084341
0.500000000 0.866025404
2
0.087155743 -0.996194698
-0.887214322 -1.221145752
-0.974370065 -0.224951054
2
0.766044443 0.642787610
1.750852196 0.816435787
0.984807753 0.173648178
2
0.984807753 0.173648178
1.438798253 1.0646547...

result:

ok ok

Test #4:

score: 0
Accepted
time: 11ms
memory: 4324kb

input:

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

output:

0
1.000000000 0.000000000
2
1.000000000 0.000000000
1.999847695 0.017452406
0.999847695 0.017452406
2
1.000000000 0.000000000
1.999390827 0.034899497
0.999390827 0.034899497
2
1.000000000 0.000000000
1.998629535 0.052335956
0.998629535 0.052335956
2
1.000000000 0.000000000
1.997564050 0.069756474
0....

result:

ok ok

Test #5:

score: 0
Accepted
time: 15ms
memory: 4388kb

input:

10000
27 280
27 281
27 282
27 283
27 284
27 285
27 286
27 287
27 288
27 289
27 290
27 291
27 292
27 293
27 294
27 295
27 296
27 297
27 298
27 299
27 300
27 301
27 302
27 303
27 304
27 305
27 306
27 307
27 308
27 309
27 310
27 311
27 312
27 313
27 314
27 315
27 316
27 317
27 318
27 319
27 320
27 321
...

output:

3
0.891006524 0.453990500
1.344997024 -0.437016024
1.082491045 -1.401946390
0.173648178 -0.984807753
3
0.891006524 0.453990500
1.344997024 -0.437016024
1.096465288 -1.405639778
0.190808995 -0.981627183
3
0.891006524 0.453990500
1.344997024 -0.437016024
1.110294359 -1.409083234
0.207911691 -0.9781476...

result:

ok ok

Test #6:

score: 0
Accepted
time: 16ms
memory: 4208kb

input:

10000
55 200
55 201
55 202
55 203
55 204
55 205
55 206
55 207
55 208
55 209
55 210
55 211
55 212
55 213
55 214
55 215
55 216
55 217
55 218
55 219
55 220
55 221
55 222
55 223
55 224
55 225
55 226
55 227
55 228
55 229
55 230
55 231
55 232
55 233
55 234
55 235
55 236
55 237
55 238
55 239
55 240
55 241
...

output:

4
0.573576436 0.819152044
-0.245575608 1.392728481
-0.819152044 0.573576436
-1.758844665 0.231556293
-0.939692621 -0.342020143
4
0.573576436 0.819152044
-0.245575608 1.392728481
-0.819152044 0.573576436
-1.752732471 0.215208487
-0.933580426 -0.358367950
4
0.573576436 0.819152044
-0.245575608 1.39272...

result:

ok ok

Test #7:

score: 0
Accepted
time: 15ms
memory: 4212kb

input:

10000
83 120
83 121
83 122
83 123
83 124
83 125
83 126
83 127
83 128
83 129
83 130
83 131
83 132
83 133
83 134
83 135
83 136
83 137
83 138
83 139
83 140
83 141
83 142
83 143
83 144
83 145
83 146
83 147
83 148
83 149
83 150
83 151
83 152
83 153
83 154
83 155
83 156
83 157
83 158
83 159
83 160
83 161
...

output:

2
0.121869343 0.992546152
-0.378130657 1.858571555
-0.500000000 0.866025404
2
0.121869343 0.992546152
-0.393168732 1.849713452
-0.515038075 0.857167301
2
0.121869343 0.992546152
-0.408049921 1.840594248
-0.529919264 0.848048096
2
0.121869343 0.992546152
-0.422769692 1.831216720
-0.544639035 0.838670...

result:

ok ok

Test #8:

score: 0
Accepted
time: 15ms
memory: 4252kb

input:

10000
111 40
111 41
111 42
111 43
111 44
111 45
111 46
111 47
111 48
111 49
111 50
111 51
111 52
111 53
111 54
111 55
111 56
111 57
111 58
111 59
111 60
111 61
111 62
111 63
111 64
111 65
111 66
111 67
111 68
111 69
111 70
111 71
111 72
111 73
111 74
111 75
111 76
111 77
111 78
111 79
111 80
111 81
...

output:

2
-0.358367950 0.933580426
0.407676494 1.576368036
0.766044443 0.642787610
2
-0.358367950 0.933580426
0.396341631 1.589639455
0.754709580 0.656059029
2
-0.358367950 0.933580426
0.384776876 1.602711033
0.743144825 0.669130606
2
-0.358367950 0.933580426
0.372985752 1.615578787
0.731353702 0.681998360
...

result:

ok ok

Test #9:

score: 0
Accepted
time: 10ms
memory: 4312kb

input:

10000
138 320
138 321
138 322
138 323
138 324
138 325
138 326
138 327
138 328
138 329
138 330
138 331
138 332
138 333
138 334
138 335
138 336
138 337
138 338
138 339
138 340
138 341
138 342
138 343
138 344
138 345
138 346
138 347
138 348
138 349
138 350
138 351
138 352
138 353
138 354
138 355
138 35...

output:

4
-0.743144825 0.669130606
-0.074014219 1.412275432
0.669130606 0.743144825
1.435175049 0.100357216
0.766044443 -0.642787610
4
-0.743144825 0.669130606
-0.074014219 1.412275432
0.669130606 0.743144825
1.446276568 0.113824434
0.777145961 -0.629320391
4
-0.743144825 0.669130606
-0.074014219 1.41227543...

result:

ok ok

Test #10:

score: 0
Accepted
time: 16ms
memory: 4292kb

input:

10000
166 240
166 241
166 242
166 243
166 244
166 245
166 246
166 247
166 248
166 249
166 250
166 251
166 252
166 253
166 254
166 255
166 256
166 257
166 258
166 259
166 260
166 261
166 262
166 263
166 264
166 265
166 266
166 267
166 268
166 269
166 270
166 271
166 272
166 273
166 274
166 275
166 27...

output:

2
-0.970295726 0.241921896
-1.470295726 -0.624103508
-0.500000000 -0.866025404
2
-0.970295726 0.241921896
-1.455105347 -0.632697812
-0.484809620 -0.874619707
2
-0.970295726 0.241921896
-1.439767289 -0.641025697
-0.469471563 -0.882947593
2
-0.970295726 0.241921896
-1.424286226 -0.649084629
-0.4539905...

result:

ok ok

Test #11:

score: 0
Accepted
time: 15ms
memory: 4440kb

input:

10000
194 160
194 161
194 162
194 163
194 164
194 165
194 166
194 167
194 168
194 169
194 170
194 171
194 172
194 173
194 174
194 175
194 176
194 177
194 178
194 179
194 180
194 181
194 182
194 183
194 184
194 185
194 186
194 187
194 188
194 189
194 190
194 191
194 192
194 193
194 194
194 195
194 19...

output:

2
-0.970295726 -0.241921896
-1.909988347 0.100098248
-0.939692621 0.342020143
2
-0.970295726 -0.241921896
-1.915814302 0.083646259
-0.945518576 0.325568154
2
-0.970295726 -0.241921896
-1.921352243 0.067095099
-0.951056516 0.309016994
2
-0.970295726 -0.241921896
-1.926600482 0.050449809
-0.956304756 ...

result:

ok ok

Test #12:

score: 0
Accepted
time: 15ms
memory: 4316kb

input:

10000
222 80
222 81
222 82
222 83
222 84
222 85
222 86
222 87
222 88
222 89
222 90
222 91
222 92
222 93
222 94
222 95
222 96
222 97
222 98
222 99
222 100
222 101
222 102
222 103
222 104
222 105
222 106
222 107
222 108
222 109
222 110
222 111
222 112
222 113
222 114
222 115
222 116
222 117
222 118
22...

output:

4
-0.743144825 -0.669130606
-1.412275432 0.074014219
-0.669130606 0.743144825
-0.495482429 1.727952578
0.173648178 0.984807753
4
-0.743144825 -0.669130606
-1.412275432 0.074014219
-0.669130606 0.743144825
-0.512696141 1.730833166
0.156434465 0.987688341
4
-0.743144825 -0.669130606
-1.412275432 0.074...

result:

ok ok

Test #13:

score: 0
Accepted
time: 11ms
memory: 4280kb

input:

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

output:

3
-0.342020143 -0.939692621
0.597672477 -1.281712764
1.505666279 -0.862729166
1.000000000 0.000000000
3
-0.342020143 -0.939692621
0.597672477 -1.281712764
1.499183314 -0.848956238
0.999847695 0.017452406
3
-0.342020143 -0.939692621
0.597672477 -1.281712764
1.492409447 -0.835119262
0.999390827 0.0348...

result:

ok ok

Test #14:

score: 0
Accepted
time: 11ms
memory: 4316kb

input:

10000
277 280
277 281
277 282
277 283
277 284
277 285
277 286
277 287
277 288
277 289
277 290
277 291
277 292
277 293
277 294
277 295
277 296
277 297
277 298
277 299
277 300
277 301
277 302
277 303
277 304
277 305
277 306
277 307
277 308
277 309
277 310
277 311
277 312
277 313
277 314
277 315
277 31...

output:

2
0.121869343 -0.992546152
0.295517521 -1.977353905
0.173648178 -0.984807753
2
0.121869343 -0.992546152
0.312678339 -1.974173335
0.190808995 -0.981627183
2
0.121869343 -0.992546152
0.329781034 -1.970693752
0.207911691 -0.978147601
2
0.121869343 -0.992546152
0.346820398 -1.966916216
0.224951054 -0.97...

result:

ok ok

Test #15:

score: 0
Accepted
time: 16ms
memory: 4436kb

input:

10000
305 200
305 201
305 202
305 203
305 204
305 205
305 206
305 207
305 208
305 209
305 210
305 211
305 212
305 213
305 214
305 215
305 216
305 217
305 218
305 219
305 220
305 221
305 222
305 223
305 224
305 225
305 226
305 227
305 228
305 229
305 230
305 231
305 232
305 233
305 234
305 235
305 23...

output:

3
0.573576436 -0.819152044
-0.245575608 -1.392728481
-1.240847024 -1.295595534
-0.939692621 -0.342020143
3
0.573576436 -0.819152044
-0.245575608 -1.392728481
-1.242112924 -1.309581752
-0.933580426 -0.358367950
3
0.573576436 -0.819152044
-0.245575608 -1.392728481
-1.243167494 -1.323371232
-0.92718385...

result:

ok ok

Test #16:

score: 0
Accepted
time: 15ms
memory: 4440kb

input:

9600
333 120
333 121
333 122
333 123
333 124
333 125
333 126
333 127
333 128
333 129
333 130
333 131
333 132
333 133
333 134
333 135
333 136
333 137
333 138
333 139
333 140
333 141
333 142
333 143
333 144
333 145
333 146
333 147
333 148
333 149
333 150
333 151
333 152
333 153
333 154
333 155
333 156...

output:

4
0.891006524 -0.453990500
1.344997024 0.437016024
0.453990500 0.891006524
-0.046009500 1.757031928
-0.500000000 0.866025404
4
0.891006524 -0.453990500
1.344997024 0.437016024
0.453990500 0.891006524
-0.061047575 1.748173825
-0.515038075 0.857167301
4
0.891006524 -0.453990500
1.344997024 0.437016024...

result:

ok ok