QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61817#692. Delete the PointscucudangAC ✓69ms8964kbPython3706b2022-11-15 00:58:102022-11-15 00:58:13

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-15 00:58:13]
  • 评测
  • 测评结果:AC
  • 用时:69ms
  • 内存:8964kb
  • [2022-11-15 00:58:10]
  • 提交

answer

def f(p1,p2,p3):
  x1,x2 = sorted((p1[0], p2[0]))
  y1,y2 = sorted((p1[1], p2[1]))
  w = x2 - x1
  h = y2 - y1
  s = max(w,h)
  if h < w:
    y2 += 0.5
  elif w < h:
    x2 += 0.5
  x1 = x2 - s
  y1 = y2 - s
  if x1 <= p3[0] <= x2 and y1 <= p3[1] <= y2:
    return 0
  print(f"{x1:.1f} {y1:.1f} {x2:.1f} {y2:.1f}")
  return 1
n = int(input())
a = sorted([[*map(int, input().split())] for _ in range(n)])
# a.append([1<<31,0])

print("Yes")
p1 = a[0]
for i in range(1,n-1,2):
  p2,p3 = a[i:i+2]
  d = 0
  for j in range(3):
    if f(p1,p2,p3):
      d = 1
      break
    p1,p2,p3 = p2,p3,p1
  if d == 0:
    s = 3 // 0
  p1 = p3
print("-1.0 -1.0 1123456789.0 1123456789.0")

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 8504kb

input:

4
1 1
2 2
5 5
6 6

output:

Yes
1.0 1.0 2.0 2.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #2:

score: 0
Accepted
time: 13ms
memory: 8460kb

input:

4
0 0
1 2
2 1
4 4

output:

Yes
-0.5 0.0 1.5 2.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #3:

score: 0
Accepted
time: 6ms
memory: 8420kb

input:

4
1 2
3 2
2 1
2 3

output:

Yes
1.0 1.0 2.0 2.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #4:

score: 0
Accepted
time: 8ms
memory: 8460kb

input:

6
12 9
1 5
10 14
20 14
15 4
7 9

output:

Yes
1.0 3.5 7.0 9.5
7.5 9.0 12.5 14.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #5:

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

input:

10
39 72
59 52
23 17
2 31
30 0
25 88
2 36
61 23
4 96
59 76

output:

Yes
-2.5 31.0 2.5 36.0
-55.5 17.0 23.5 96.0
-57.5 0.0 30.5 88.0
39.0 52.0 59.0 72.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #6:

score: 0
Accepted
time: 22ms
memory: 8368kb

input:

10
53 95
37 51
84 11
3 39
31 20
37 84
42 27
95 38
6 6
16 19

output:

Yes
-26.5 6.0 6.5 39.0
16.0 5.5 31.0 20.5
4.5 51.0 37.5 84.0
-14.5 27.0 53.5 95.0
-1.0 -1.0 1123456789.0 1123456789.0

result:

ok OK

Test #7:

score: 0
Accepted
time: 41ms
memory: 8924kb

input:

3000
997371332 135791687
997371332 135791686
997371332 135791685
997371333 135791685
997371333 135791687
997371334 135791687
997371333 135791688
997371331 135791686
997371333 135791689
997371334 135791686
997371334 135791689
997371333 135791684
997371332 135791689
997371331 135791685
997371334 13579...

output:

Yes
997371303.5 135791684.0 997371304.5 135791685.0
997371303.5 135791708.0 997371304.5 135791709.0
997371304.5 135791685.0 997371305.5 135791686.0
997371301.5 135791694.0 997371305.5 135791698.0
997371304.5 135791707.0 997371305.5 135791708.0
997371303.0 135791707.5 997371305.0 135791709.5
99737130...

result:

ok OK

Test #8:

score: 0
Accepted
time: 19ms
memory: 8416kb

input:

36
199 305
199 307
202 306
203 309
201 308
203 308
199 304
198 307
198 304
201 304
200 307
200 305
203 307
203 304
203 305
201 305
201 307
200 309
202 309
201 309
198 306
199 306
200 304
198 309
198 305
200 306
202 304
201 306
199 309
203 306
198 308
202 308
199 308
202 305
202 307
200 308

output:

Yes
197.5 304.0 198.5 305.0
197.5 306.0 198.5 307.0
197.5 308.0 198.5 309.0
198.5 304.0 199.5 305.0
198.5 306.0 199.5 307.0
198.5 308.0 199.5 309.0
199.5 304.0 200.5 305.0
199.5 306.0 200.5 307.0
199.5 308.0 200.5 309.0
200.5 304.0 201.5 305.0
200.5 306.0 201.5 307.0
200.5 308.0 201.5 309.0
201.5 30...

result:

ok OK

Test #9:

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

input:

128
6357 4491
6356 4510
6357 4490
6357 4498
6356 4492
6355 4502
6357 4506
6356 4499
6355 4508
6355 4493
6355 4516
6358 4510
6357 4497
6357 4515
6357 4513
6358 4512
6357 4509
6357 4494
6356 4500
6355 4491
6356 4497
6355 4501
6358 4503
6357 4501
6356 4515
6358 4513
6355 4499
6355 4505
6358 4517
6358 4...

output:

Yes
6354.5 4489.0 6355.5 4490.0
6354.5 4491.0 6355.5 4492.0
6354.5 4493.0 6355.5 4494.0
6354.5 4495.0 6355.5 4496.0
6354.5 4497.0 6355.5 4498.0
6354.5 4499.0 6355.5 4500.0
6354.5 4501.0 6355.5 4502.0
6354.5 4503.0 6355.5 4504.0
6354.5 4505.0 6355.5 4506.0
6354.5 4507.0 6355.5 4508.0
6354.5 4509.0 63...

result:

ok OK

Test #10:

score: 0
Accepted
time: 23ms
memory: 8700kb

input:

1444
122394525 884625474
122394544 884625449
122394537 884625450
122394534 884625441
122394526 884625452
122394541 884625446
122394523 884625443
122394529 884625461
122394521 884625462
122394535 884625470
122394521 884625444
122394507 884625440
122394508 884625448
122394537 884625463
122394507 88462...

output:

Yes
122394506.5 884625437.0 122394507.5 884625438.0
122394506.5 884625439.0 122394507.5 884625440.0
122394506.5 884625441.0 122394507.5 884625442.0
122394506.5 884625443.0 122394507.5 884625444.0
122394506.5 884625445.0 122394507.5 884625446.0
122394506.5 884625447.0 122394507.5 884625448.0
12239450...

result:

ok OK

Test #11:

score: 0
Accepted
time: 22ms
memory: 8548kb

input:

2048
104790855 978585926
104790853 978585917
104790847 978585935
104790807 978585934
104790869 978585939
104790813 978585932
104790832 978585922
104790840 978585944
104790813 978585930
104790806 978585918
104790847 978585943
104790836 978585933
104790810 978585916
104790830 978585920
104790857 97858...

output:

Yes
104790805.5 978585914.0 104790806.5 978585915.0
104790805.5 978585916.0 104790806.5 978585917.0
104790805.5 978585918.0 104790806.5 978585919.0
104790805.5 978585920.0 104790806.5 978585921.0
104790805.5 978585922.0 104790806.5 978585923.0
104790805.5 978585924.0 104790806.5 978585925.0
10479080...

result:

ok OK

Test #12:

score: 0
Accepted
time: 26ms
memory: 8552kb

input:

1000
378405767 3269747
378405743 3269785
378405740 3269786
378405763 3269757
378405763 3269781
378405765 3269757
378405742 3269768
378405767 3269751
378405763 3269741
378405738 3269730
378405749 3269739
378405745 3269733
378405745 3269759
378405764 3269778
378405741 3269729
378405759 3269755
3784057...

output:

Yes
378405734.5 3269728.0 378405736.5 3269730.0
378405734.5 3269732.0 378405736.5 3269734.0
378405734.5 3269736.0 378405736.5 3269738.0
378405734.5 3269740.0 378405736.5 3269742.0
378405734.5 3269744.0 378405736.5 3269746.0
378405734.5 3269748.0 378405736.5 3269750.0
378405734.5 3269752.0 378405736....

result:

ok OK

Test #13:

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

input:

100
11771 17392
11771 17393
11770 17393
11771 17394
11772 17392
11772 17393
11769 17393
11773 17393
11769 17392
11768 17392
11769 17394
11773 17392
11768 17391
11767 17391
11767 17392
11774 17393
11766 17391
11774 17392
11766 17390
11770 17394
11771 17395
11769 17391
11774 17391
11771 17396
11770 17...

output:

Yes
11761.0 17387.5 11762.0 17388.5
11762.5 17386.0 11763.5 17387.0
11762.5 17388.0 11763.5 17389.0
11762.5 17390.0 11763.5 17391.0
11762.5 17386.0 11764.5 17388.0
11763.5 17389.0 11764.5 17390.0
11762.0 17389.5 11764.0 17391.5
11764.5 17390.0 11765.5 17391.0
11764.0 17391.5 11765.0 17392.5
11765.5 ...

result:

ok OK

Test #14:

score: 0
Accepted
time: 22ms
memory: 8504kb

input:

410
380814730 2133815
380814730 2133814
380814729 2133814
380814731 2133814
380814731 2133815
380814731 2133816
380814729 2133813
380814732 2133816
380814730 2133816
380814728 2133814
380814732 2133817
380814731 2133813
380814732 2133813
380814732 2133812
380814728 2133815
380814733 2133816
38081473...

output:

Yes
380814715.5 2133817.0 380814717.5 2133819.0
380814717.5 2133813.0 380814718.5 2133814.0
380814717.5 2133816.0 380814718.5 2133817.0
380814717.5 2133818.0 380814718.5 2133819.0
380814718.5 2133808.0 380814719.5 2133809.0
380814718.5 2133811.0 380814719.5 2133812.0
380814718.5 2133814.0 380814719....

result:

ok OK

Test #15:

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

input:

1106
31879487 28769582
31879486 28769582
31879487 28769581
31879486 28769581
31879486 28769583
31879487 28769583
31879487 28769580
31879488 28769580
31879488 28769583
31879485 28769582
31879488 28769579
31879485 28769583
31879488 28769582
31879486 28769580
31879486 28769584
31879486 28769585
3187948...

output:

Yes
31879452.5 28769574.0 31879471.5 28769593.0
31879471.5 28769572.0 31879472.5 28769573.0
31879466.5 28769574.0 31879472.5 28769580.0
31879461.5 28769582.0 31879472.5 28769593.0
31879471.5 28769594.0 31879472.5 28769595.0
31879472.5 28769573.0 31879473.5 28769574.0
31879472.5 28769578.0 31879473.5...

result:

ok OK

Test #16:

score: 0
Accepted
time: 39ms
memory: 8664kb

input:

1682
199151236 118971535
199151236 118971534
199151236 118971533
199151236 118971532
199151237 118971533
199151237 118971534
199151238 118971534
199151238 118971535
199151237 118971535
199151236 118971536
199151235 118971534
199151239 118971535
199151235 118971536
199151239 118971536
199151240 11897...

output:

Yes
199151198.5 118971523.0 199151213.5 118971538.0
199151213.5 118971523.0 199151214.5 118971524.0
199151213.5 118971525.0 199151214.5 118971526.0
199151204.5 118971527.0 199151214.5 118971537.0
199151213.5 118971538.0 199151214.5 118971539.0
199151214.5 118971524.0 199151215.5 118971525.0
19915121...

result:

ok OK

Test #17:

score: 0
Accepted
time: 24ms
memory: 8436kb

input:

1120
66329602 172836461
66329603 172836461
66329604 172836461
66329604 172836460
66329603 172836460
66329602 172836462
66329601 172836462
66329602 172836460
66329602 172836459
66329601 172836461
66329601 172836460
66329602 172836463
66329600 172836461
66329603 172836463
66329603 172836459
66329603 1...

output:

Yes
66329582.0 172836451.5 66329583.0 172836452.5
66329582.5 172836450.0 66329584.5 172836452.0
66329584.5 172836450.0 66329585.5 172836451.0
66329583.0 172836451.5 66329585.0 172836453.5
66329585.5 172836450.0 66329586.5 172836451.0
66329585.5 172836452.0 66329586.5 172836453.0
66329585.5 172836454...

result:

ok OK

Test #18:

score: 0
Accepted
time: 46ms
memory: 8696kb

input:

2364
14502323 4917115
14502322 4917115
14502321 4917115
14502323 4917114
14502321 4917114
14502324 4917115
14502321 4917113
14502323 4917116
14502324 4917114
14502322 4917114
14502321 4917112
14502324 4917113
14502322 4917116
14502324 4917112
14502323 4917113
14502325 4917113
14502321 4917111
145023...

output:

Yes
14502285.5 4917114.0 14502286.5 4917115.0
14502284.5 4917114.0 14502287.5 4917117.0
14502287.5 4917113.0 14502288.5 4917114.0
14502287.5 4917115.0 14502288.5 4917116.0
14502287.5 4917114.0 14502289.5 4917116.0
14502288.0 4917116.5 14502289.0 4917117.5
14502288.5 4917113.0 14502290.5 4917115.0
14...

result:

ok OK

Test #19:

score: 0
Accepted
time: 23ms
memory: 8456kb

input:

1000
984711605 721217148
984711606 721217148
984711605 721217149
984711604 721217148
984711604 721217147
984711603 721217147
984711605 721217147
984711606 721217147
984711605 721217146
984711603 721217146
984711602 721217146
984711602 721217147
984711601 721217146
984711603 721217148
984711606 72121...

output:

Yes
984711585.0 721217149.5 984711586.0 721217150.5
984711582.5 721217151.0 984711586.5 721217155.0
984711577.5 721217138.0 984711587.5 721217148.0
984711586.5 721217149.0 984711587.5 721217150.0
984711583.5 721217151.0 984711587.5 721217155.0
984711587.5 721217136.0 984711588.5 721217137.0
98471158...

result:

ok OK

Test #20:

score: 0
Accepted
time: 12ms
memory: 8808kb

input:

2000
843557823 928504418
843557822 928504418
843557823 928504417
843557823 928504416
843557824 928504417
843557822 928504419
843557823 928504415
843557823 928504414
843557824 928504414
843557824 928504413
843557821 928504419
843557824 928504415
843557823 928504413
843557822 928504417
843557822 92850...

output:

Yes
843557795.5 928504409.0 843557796.5 928504410.0
843557796.5 928504409.0 843557797.5 928504410.0
843557796.5 928504411.0 843557797.5 928504412.0
843557797.5 928504408.0 843557798.5 928504409.0
843557797.5 928504410.0 843557798.5 928504411.0
843557795.5 928504413.0 843557798.5 928504416.0
84355779...

result:

ok OK

Test #21:

score: 0
Accepted
time: 51ms
memory: 8876kb

input:

3000
326952474 119559920
326952475 119559920
326952474 119559921
326952475 119559919
326952474 119559922
326952473 119559921
326952475 119559921
326952476 119559920
326952474 119559919
326952473 119559922
326952475 119559922
326952476 119559922
326952473 119559919
326952476 119559919
326952473 11955...

output:

Yes
326952447.0 119559932.5 326952448.0 119559933.5
326952448.0 119559920.5 326952449.0 119559921.5
326952438.5 119559911.0 326952449.5 119559922.0
326952448.5 119559925.0 326952449.5 119559926.0
326952445.5 119559927.0 326952449.5 119559931.0
326952449.5 119559911.0 326952450.5 119559912.0
32695244...

result:

ok OK

Test #22:

score: 0
Accepted
time: 37ms
memory: 8880kb

input:

3000
380232772 174172185
380232771 174172185
380232772 174172184
380232771 174172184
380232771 174172186
380232773 174172185
380232770 174172186
380232773 174172184
380232769 174172186
380232772 174172186
380232774 174172184
380232774 174172185
380232770 174172184
380232774 174172186
380232769 17417...

output:

Yes
380232734.5 174172183.0 380232735.5 174172184.0
380232731.5 174172178.0 380232736.5 174172183.0
380232735.5 174172184.0 380232736.5 174172185.0
380232735.5 174172178.0 380232737.5 174172180.0
380232736.5 174172181.0 380232737.5 174172182.0
380232736.5 174172183.0 380232737.5 174172184.0
38023273...

result:

ok OK

Test #23:

score: 0
Accepted
time: 69ms
memory: 8892kb

input:

3000
140198268 469838596
140198268 469838597
140198267 469838597
140198267 469838596
140198267 469838595
140198268 469838595
140198269 469838595
140198267 469838594
140198267 469838593
140198266 469838593
140198268 469838594
140198266 469838592
140198270 469838595
140198269 469838594
140198269 46983...

output:

Yes
140198235.5 469838577.0 140198238.5 469838580.0
140198238.5 469838576.0 140198239.5 469838577.0
140198238.5 469838580.0 140198239.5 469838581.0
140198232.5 469838582.0 140198239.5 469838589.0
140198234.5 469838590.0 140198239.5 469838595.0
140198234.5 469838596.0 140198239.5 469838601.0
14019823...

result:

ok OK

Test #24:

score: 0
Accepted
time: 41ms
memory: 8888kb

input:

3000
901816252 637962925
901816253 637962925
901816251 637962925
901816253 637962924
901816252 637962926
901816253 637962926
901816254 637962924
901816253 637962923
901816255 637962924
901816254 637962923
901816252 637962924
901816250 637962925
901816255 637962923
901816256 637962924
901816249 63796...

output:

Yes
901816220.5 637962926.0 901816221.5 637962927.0
901816221.5 637962924.0 901816222.5 637962925.0
901816221.5 637962926.0 901816222.5 637962927.0
901816221.5 637962928.0 901816222.5 637962929.0
901816221.0 637962929.0 901816222.0 637962930.0
901816222.5 637962926.0 901816223.5 637962927.0
90181622...

result:

ok OK

Test #25:

score: 0
Accepted
time: 35ms
memory: 8892kb

input:

3000
255021346 678545164
255021346 678545163
255021346 678545162
255021347 678545162
255021346 678545161
255021345 678545164
255021347 678545164
255021347 678545161
255021345 678545162
255021344 678545164
255021346 678545165
255021344 678545162
255021347 678545165
255021348 678545164
255021348 67854...

output:

Yes
255021310.0 678545155.5 255021311.0 678545156.5
255021310.5 678545147.0 255021312.5 678545149.0
255021306.5 678545150.0 255021312.5 678545156.0
255021310.5 678545157.0 255021312.5 678545159.0
255021312.5 678545146.0 255021313.5 678545147.0
255021312.5 678545149.0 255021313.5 678545150.0
25502131...

result:

ok OK

Test #26:

score: 0
Accepted
time: 38ms
memory: 8848kb

input:

3000
19944320 886552614
19944321 886552614
19944322 886552614
19944322 886552615
19944319 886552614
19944322 886552613
19944323 886552613
19944320 886552615
19944320 886552613
19944321 886552615
19944321 886552613
19944321 886552616
19944318 886552614
19944318 886552613
19944322 886552612
19944322 8...

output:

Yes
19944286.0 886552603.5 19944287.0 886552604.5
19944287.5 886552602.0 19944288.5 886552603.0
19944287.5 886552604.0 19944288.5 886552605.0
19944288.5 886552601.0 19944289.5 886552602.0
19944288.5 886552603.0 19944289.5 886552604.0
19944289.5 886552602.0 19944290.5 886552603.0
19944289.5 886552604...

result:

ok OK

Test #27:

score: 0
Accepted
time: 46ms
memory: 8892kb

input:

3000
81487100 672050647
81487099 672050647
81487099 672050646
81487101 672050647
81487101 672050646
81487102 672050647
81487100 672050646
81487098 672050647
81487100 672050648
81487103 672050647
81487102 672050646
81487101 672050648
81487098 672050648
81487103 672050648
81487099 672050645
81487097 6...

output:

Yes
81487064.5 672050660.0 81487066.5 672050662.0
81487066.5 672050658.0 81487067.5 672050659.0
81487066.5 672050660.0 81487067.5 672050661.0
81487066.5 672050662.0 81487067.5 672050663.0
81487067.5 672050643.0 81487068.5 672050644.0
81487067.5 672050658.0 81487068.5 672050659.0
81487067.5 672050660...

result:

ok OK

Test #28:

score: 0
Accepted
time: 37ms
memory: 8828kb

input:

3000
849715052 230047603
849715052 230047604
849715053 230047604
849715054 230047604
849715051 230047603
849715054 230047605
849715052 230047602
849715051 230047604
849715054 230047603
849715054 230047602
849715053 230047605
849715053 230047602
849715051 230047605
849715051 230047602
849715055 23004...

output:

Yes
849715016.0 230047602.5 849715017.0 230047603.5
849715017.5 230047602.0 849715018.5 230047603.0
849715017.5 230047604.0 849715018.5 230047605.0
849715014.5 230047593.0 849715019.5 230047598.0
849715018.5 230047599.0 849715019.5 230047600.0
849715018.5 230047601.0 849715019.5 230047602.0
84971501...

result:

ok OK

Test #29:

score: 0
Accepted
time: 51ms
memory: 8964kb

input:

3000
209530154 278800866
209530153 278800866
209530152 278800866
209530152 278800865
209530152 278800864
209530154 278800865
209530152 278800867
209530152 278800863
209530152 278800862
209530153 278800867
209530151 278800864
209530154 278800864
209530155 278800865
209530155 278800866
209530154 27880...

output:

Yes
209530114.5 278800856.0 209530115.5 278800857.0
209530116.0 278800856.5 209530117.0 278800857.5
209530117.5 278800857.0 209530118.5 278800858.0
209530117.0 278800858.0 209530118.0 278800859.0
209530117.5 278800860.0 209530118.5 278800861.0
209530118.5 278800856.0 209530119.5 278800857.0
20953011...

result:

ok OK

Test #30:

score: 0
Accepted
time: 22ms
memory: 8456kb

input:

1178
12036052 24560933
21423541 11553906
22039558 4415857
23774109 25917119
22044001 13002902
31309918 29279529
8964688 15596053
11410338 12655701
30962336 24981123
23719511 23001628
32303421 20203888
27683917 11732630
6617793 24802588
5498165 32274901
31289416 9043570
15258992 14700379
12898925 104...

output:

Yes
-15341326.5 5264799.0 35483.5 20641609.0
-3057893.5 6374819.0 89718.5 9522431.0
-5510334.5 19249061.0 111357.5 24870753.0
-17161746.5 14473206.0 163594.5 31798547.0
-12726274.5 8336982.0 207875.5 21271132.0
-7985530.5 7203233.0 324988.5 15513752.0
-8701611.5 1153109.0 400534.5 10255255.0
-209380...

result:

ok OK

Test #31:

score: 0
Accepted
time: 39ms
memory: 8716kb

input:

1640
136484178 126444841
333101398 24563753
71900946 274700249
342347449 78130816
137545314 249684257
3978345 197411412
351325646 34261775
114797111 24597769
204418733 80935388
253315894 323061249
275452404 23866183
300224575 181211404
210308333 247063610
232250470 250178870
73813893 171299008
14893...

output:

Yes
-61468020.5 279861255.0 153556.5 341482832.0
-80207879.5 105654059.0 716070.5 186578009.0
-44424732.5 186122374.0 1284543.5 231831650.0
-220020632.5 133142114.0 1484470.5 354647217.0
-279332257.5 48746767.0 2152967.5 330231992.0
-137990561.5 203932985.0 2475056.5 344398603.0
-117969240.5 1327628...

result:

ok OK

Test #32:

score: 0
Accepted
time: 36ms
memory: 8644kb

input:

1068
22972267 15624488
3609926 352020
15859748 942114
4129039 13232083
5255597 2745286
14744090 13828379
6721218 20429790
21615183 6393625
14867543 7106305
11670448 15856912
17239714 9145856
4801574 1380878
14742712 10568492
10788638 11349169
3274001 20392589
17512458 1229743
11271738 17261101
69220...

output:

Yes
-10299914.5 2215458.0 50295.5 12565668.0
-7552495.5 11926922.0 96811.5 19576229.0
-7605760.5 6396728.0 106964.5 14109453.0
-7907536.5 601518.0 109368.5 8618423.0
-17001134.5 3576083.0 123114.5 20700332.0
-5866123.5 7469541.0 185421.5 13521086.0
174450.5 7939724.0 190438.5 7955712.0
-3005187.5 19...

result:

ok OK

Test #33:

score: 0
Accepted
time: 39ms
memory: 8588kb

input:

2346
5106504 12992174
28324161 23077950
31282743 28091380
15471270 7172663
5834371 27697056
30571017 29290634
10984757 5646217
25467203 13831678
19375353 25171512
29760131 17759277
27811534 7932009
24724810 620438
33227130 7646942
25885038 10977438
7953540 30531147
1580379 12094874
4779928 20164107
...

output:

Yes
-17397537.5 947600.0 8399.5 18353537.0
-4898652.5 4079793.0 18236.5 8996682.0
-16492447.5 12891034.0 53869.5 29437351.0
-3271511.5 31427108.0 70703.5 34769323.0
-18204772.5 5108487.0 84963.5 23398223.0
-1789430.5 21456162.0 148194.5 23393787.0
-10564490.5 17452911.0 188204.5 28205606.0
-14520112...

result:

ok OK

Test #34:

score: 0
Accepted
time: 59ms
memory: 8848kb

input:

3000
683106201 983926110
843148391 805989213
836994236 936775150
365544627 182465452
971191966 454024291
324209406 160614301
221579201 265101387
323328424 687447836
370817474 204756248
531455117 722397735
407043762 8442038
993889971 529650114
811679540 832460203
211643757 811851921
74551573 64978210...

output:

Yes
-384563692.5 149154479.0 370440.5 534088612.0
-229834345.5 342869570.0 788567.5 573492483.0
-544058722.5 213513096.0 1096307.5 758668126.0
-310020866.5 186784266.0 2411667.5 499216800.0
-154800304.5 478107642.0 2971899.5 635879846.0
-14450641.5 884211316.0 3623892.5 902285850.0
-452986770.5 1861...

result:

ok OK

Test #35:

score: 0
Accepted
time: 42ms
memory: 8920kb

input:

3000
666015912 944186906
559506019 69880292
334305525 858767592
260009982 538399886
297439837 121287219
548720363 311940451
791919679 387558470
538097110 777349827
413142538 880728370
962786801 744372206
996002495 642091949
840969860 218092379
130107154 232228642
905230983 754847989
856665759 449863...

output:

Yes
-333069418.5 366456382.0 1125197.5 700650998.0
-672490697.5 103751121.0 1621752.5 777863571.0
-449726364.5 514333602.0 1917370.5 965977337.0
-322614678.5 174200286.0 2686604.5 499501569.0
-256362706.5 342422323.0 2791516.5 601576546.0
-360225270.5 53809434.0 2991162.5 417025867.0
-30068046.5 698...

result:

ok OK

Test #36:

score: 0
Accepted
time: 33ms
memory: 8880kb

input:

3000
899219025 883166269
252416949 807118950
58545263 784658716
507922984 120077805
640190744 31950566
452226800 648461331
662629882 782992198
996084861 162035735
774449765 586698284
162697507 106589626
995069394 35550283
92948378 753494977
850163289 708771226
545079679 929941109
337684793 74650580
...

output:

Yes
-459106675.5 507358630.0 873507.5 967338813.0
-14226710.5 802408648.0 1602422.5 818237781.0
-99253210.5 812306451.0 2648775.5 914208437.0
-108467592.5 677523354.0 4689421.5 790680368.0
-823116263.5 110838579.0 5703734.5 939658577.0
-484306068.5 345753096.0 5972561.5 836031726.0
-41181169.5 87015...

result:

ok OK

Test #37:

score: 0
Accepted
time: 22ms
memory: 8872kb

input:

3000
429041923 989570855
498826239 265614730
31752237 670873303
752188766 531419142
728334407 724514897
396132770 325253757
518301099 927683516
31829507 124485601
258994250 149933106
668897134 547511143
450218328 636666376
939805041 457992850
217565517 81722057
719531799 986010199
427017597 15671367...

output:

Yes
-240469945.5 579049852.0 476773.5 819996571.0
-150895788.5 375215717.0 702264.5 526813770.0
-287836724.5 510462633.0 1014515.5 799313873.0
-181712904.5 641069285.0 1319828.5 824102018.0
-585186058.5 53170510.0 1951325.5 640307894.0
-416553396.5 274890961.0 2167331.5 693611689.0
-290960253.5 2238...

result:

ok OK

Test #38:

score: 0
Accepted
time: 34ms
memory: 8692kb

input:

2350
669921077 534606025
552118333 864198237
782904332 559420536
959934513 22425261
533913163 693669933
579655813 146503402
11610899 931837076
82393253 239182467
164866246 882450737
786994205 79179134
100191130 979339386
1287777 423231449
188654873 474544247
913211914 630669045
152620566 487333040
6...

output:

Yes
-225977728.5 247967648.0 1234082.5 475179459.0
-406462012.5 423231449.0 2211755.5 831905217.0
-437876186.5 4629685.0 2627895.5 445133767.0
-132932102.5 775872253.0 2927004.5 911731360.0
-365384126.5 121564903.0 3935479.5 490884509.0
-663819481.5 118071228.0 5278768.5 787169478.0
-505774112.5 327...

result:

ok OK

Test #39:

score: 0
Accepted
time: 30ms
memory: 8892kb

input:

2772
133522836 531726711
780626175 498140109
846829644 644666632
95506593 586594761
681984762 665722293
472789396 189731192
58567055 683091213
882951886 830403131
593170977 50295650
487567270 661280887
514756971 953539148
356708952 579557396
899493708 161785126
67805317 806856449
223880516 60460432
...

output:

Yes
-440460906.5 92897769.0 842229.5 534200905.0
-219165340.5 79960811.0 1474291.5 300600443.0
-688003553.5 271460618.0 2049037.5 961513209.0
-254716459.5 612957321.0 2755079.5 870428860.0
-141918749.5 130391081.0 3316344.5 275626175.0
-467876392.5 103068667.0 3681104.5 574626164.0
-184394239.5 2056...

result:

ok OK

Test #40:

score: 0
Accepted
time: 48ms
memory: 8572kb

input:

2206
957795769 672280342
652243290 302901367
944707345 546396328
355709391 601189703
611957341 88239586
406708314 881483524
564332431 12102240
478093918 254412675
583773317 409331377
262325506 994431965
141499498 527135978
803077551 498327548
387123766 678596723
103374687 766707876
342350717 1124364...

output:

Yes
-263839125.5 239845786.0 565218.5 504250130.0
-443695421.5 34441169.0 2567891.5 480704482.0
-612562008.5 349088470.0 3057484.5 964707963.0
-254825067.5 228618955.0 3799759.5 487243782.0
-397563065.5 271998871.0 4928983.5 674490920.0
-111801642.5 645235739.0 5986515.5 763023897.0
-165692494.5 491...

result:

ok OK

Test #41:

score: 0
Accepted
time: 32ms
memory: 8736kb

input:

2628
389685415 594223296
984795236 580001910
69984840 216587835
740542921 957664596
208732802 147643622
602750930 558196865
6048763 287466399
505775712 578287422
364564242 369623336
224061783 783665096
47495049 177271623
683382634 359411102
282948812 319946347
978450856 558245114
918096566 126955568...

output:

Yes
-498242826.5 121068808.0 1427902.5 620739537.0
-182522747.5 36222446.0 1738474.5 220483668.0
-418612435.5 518377357.0 2367251.5 939357044.0
-563454376.5 182287165.0 2648005.5 748389547.0
-587085616.5 199679881.0 2669827.5 789435325.0
-142888427.5 386430153.0 2895260.5 532213841.0
-124146828.5 51...

result:

ok OK

Test #42:

score: 0
Accepted
time: 38ms
memory: 8608kb

input:

2076
399065671 442779788
743637008 949773962
12395294 34908944
365105274 981384389
587409243 284397432
176015319 809805811
353318436 984291711
111221472 886727844
965941359 636204219
403173736 504088293
87519414 53689170
732783010 572873469
816893520 495899392
168141862 96767679
246085357 464027569
...

output:

Yes
-52060322.5 12384446.0 267492.5 64712261.0
-297674494.5 263691280.0 863168.5 562228943.0
-235556722.5 401105964.0 1712378.5 638375065.0
-591222567.5 49631037.0 2426579.5 643280184.0
-426084078.5 29500249.0 2823548.5 458407876.0
-148671959.5 117420592.0 3063580.5 269156132.0
-188499660.5 70064368...

result:

ok OK

Test #43:

score: 0
Accepted
time: 53ms
memory: 8868kb

input:

2498
280903830 174718425
813670529 238629463
283725484 38309897
114298365 455529619
747986651 461550776
306370695 341343058
189794912 223957421
294431206 396553413
804251214 799008642
582841885 687146161
261572574 861421289
361344077 390450552
752480589 501423163
613957692 208687502
74581181 6550971...

output:

Yes
-258814547.5 385211559.0 1455449.5 645481556.0
-162296894.5 508781501.0 1791065.5 672869461.0
-278291150.5 193122797.0 3368985.5 474782933.0
-66492101.5 776081476.0 3756840.5 846330418.0
-85240421.5 692481557.0 3965490.5 781687469.0
-279203494.5 677646671.0 4496930.5 961347096.0
-553667425.5 369...

result:

ok OK

Test #44:

score: 0
Accepted
time: 27ms
memory: 8908kb

input:

2934
330167197 653129937
604961193 173412303
322404584 140056422
693154888 970034900
575366968 384136343
80551344 152808593
83601607 848405462
55404928 431095245
311370387 563069304
324637057 621253420
541290736 162038821
159000468 790331120
96262616 631484979
899280377 620848473
130427946 693611640...

output:

Yes
-160531762.5 798241990.0 1439935.5 960213688.0
-40883237.5 394231984.0 2684508.5 437799730.0
-136838946.5 298535401.0 3448279.5 438822627.0
-35398160.5 368419538.0 3881644.5 407699343.0
-1719080.5 249881205.0 4652172.5 256252458.0
-610212109.5 270586525.0 6035659.5 886834294.0
-25921304.5 844341...

result:

ok OK

Test #45:

score: 0
Accepted
time: 20ms
memory: 8880kb

input:

2368
856962170 568179359
512435279 573981782
143300231 765081536
101674855 229932928
184648255 757186803
368591572 439210768
314838186 757405435
904166958 415286366
207199209 338451563
318724290 816434416
206773578 235641446
340809201 837557810
748280615 296150215
239166950 348118255
233484969 79462...

output:

Yes
-357084135.5 199918100.0 119282.5 557121518.0
-41655177.5 189069462.0 1086869.5 231811509.0
-209523189.5 732395753.0 3252779.5 945171722.0
-359812961.5 71795686.0 4166195.5 435774843.0
-808379026.5 138049357.0 5202659.5 951631043.0
-77250405.5 611107881.0 5572350.5 693930637.0
-573669002.5 23978...

result:

ok OK

Test #46:

score: 0
Accepted
time: 39ms
memory: 8844kb

input:

2804
874513459 381478591
112802727 268783767
998148331 746740649
44890934 940256360
575830494 170636795
33853513 33905016
926736050 604443462
597296525 182482179
30125759 305024696
903302305 439333735
6285182 240558618
368382170 237163316
836857326 77038340
685163950 633917613
88784933 419758571
407...

output:

Yes
-43500536.5 122713621.0 1269597.5 167483755.0
-255339606.5 486671979.0 1599388.5 743610974.0
-185580335.5 517543419.0 2244674.5 705368429.0
-41694712.5 829652979.0 2644836.5 873992528.0
-208785390.5 686282875.0 3536034.5 898604300.0
-489256565.5 303905264.0 4656005.5 797817835.0
-204984043.5 786...

result:

ok OK

Test #47:

score: 0
Accepted
time: 37ms
memory: 8716kb

input:

2224
469555311 774606068
24361972 939396681
245196227 403455315
407705105 395972525
633815668 34551658
256206442 613560211
971113225 182777725
163157423 51104239
983473563 577886739
130189140 518315163
286610889 471757639
565050490 399212972
628596286 472440192
380733220 449882740
401360494 95561397...

output:

Yes
-665459865.5 66698631.0 287651.5 732446148.0
-435231617.5 374027778.0 1031055.5 810290451.0
-16401213.5 86057807.0 1421107.5 103880128.0
-31274065.5 416069964.0 2294490.5 449638520.0
-37803432.5 640405114.0 2799011.5 681007558.0
-633904887.5 81856576.0 5257840.5 721019304.0
-74010276.5 484575397...

result:

ok OK

Test #48:

score: 0
Accepted
time: 27ms
memory: 8800kb

input:

2618
933433955 522011329
845775674 603699415
498645297 188329460
985819714 5857128
55699127 70687813
844784136 572652045
504398507 77702153
975614237 581176185
83535978 841238169
971961126 138364276
988188100 627362174
248796993 949934009
550410309 527416012
20018706 439344282
879519555 303750460
98...

output:

Yes
-473995439.5 416304081.0 2097802.5 892397323.0
-591159744.5 107696139.0 3335724.5 702191608.0
-175292689.5 518751410.0 4039117.5 698083217.0
-100153453.5 696102760.0 5176991.5 801433205.0
-641638828.5 240646412.0 6092758.5 888377999.0
-634560894.5 300053897.0 7032938.5 941647730.0
-195731621.5 3...

result:

ok OK

Test #49:

score: 0
Accepted
time: 38ms
memory: 8716kb

input:

2052
608532653 302981541
269702941 803607754
174716187 91286529
484031729 148170953
392034093 23176685
24848686 50513669
595214113 267333379
483145263 671916295
938869102 27989442
259602065 354235410
206266411 792055265
738739900 252787875
50253083 506153108
381456211 969158195
189169265 812996889
4...

output:

Yes
-81993885.5 702262314.0 372495.5 784628695.0
-476366244.5 64041357.0 716710.5 541124312.0
-523658973.5 207511891.0 1380660.5 732551525.0
-168685365.5 677187596.0 1608583.5 847481545.0
-598243454.5 208593602.0 3658141.5 810495198.0
-251819923.5 427195903.0 4160299.5 683176126.0
-268347061.5 30450...

result:

ok OK

Test #50:

score: 0
Accepted
time: 20ms
memory: 8792kb

input:

2474
451056557 875690289
4822039 191237344
44831807 867454157
401841859 740910161
805237333 426130401
172069550 218368873
611631390 973475424
273472975 124133897
122778549 521029592
154635724 26188695
853340763 183030191
807843527 301183899
975192707 314460943
447525559 458980286
680904337 152786414...

output:

Yes
-358943514.5 493998528.0 452209.5 853394252.0
-213354085.5 185608860.0 1557486.5 400520432.0
-266270442.5 683878841.0 3264309.5 953413593.0
-600129775.5 191237344.0 4822039.5 796189159.0
-18317477.5 900559075.0 5606409.5 924482962.0
-128039878.5 436503578.0 6301213.5 570844670.0
-686657177.5 218...

result:

ok OK

Test #51:

score: 0
Accepted
time: 33ms
memory: 8892kb

input:

2924
871070968 375012729
461198291 661189068
358965255 802100813
559380743 374009444
295308859 869483642
286446724 961119666
543951460 90729205
641564712 242495204
330598076 910293316
551663022 618982555
634443826 800286914
510800990 790455831
514797467 247306864
353101895 773935396
629914984 838583...

output:

Yes
-643834498.5 301871099.0 379547.5 946085145.0
-286903553.5 97348238.0 1535207.5 385786999.0
-241357668.5 61476322.0 2038278.5 304872269.0
-44133599.5 21324571.0 2620167.5 68078338.0
-180456899.5 236470762.0 3316560.5 420244222.0
-639956414.5 344035454.0 3928998.5 987920867.0
-191924261.5 6782379...

result:

ok OK

Test #52:

score: 0
Accepted
time: 51ms
memory: 8672kb

input:

2344
163543237 747367664
228766415 301960025
538372090 48115589
841550414 457534094
862248649 353236425
662947543 983798714
955128707 466205603
292453149 874111128
420249437 900813281
707860200 684760558
308189423 107471944
104788497 927073937
167629739 714756177
454669346 672637361
331168537 768582...

output:

Yes
-732769657.5 41770271.0 900718.5 775440647.0
-185959999.5 607079693.0 1607631.5 794647324.0
-848010197.5 10107486.0 3005858.5 861123542.0
-166777110.5 370585528.0 3389003.5 540751642.0
-231695610.5 283132998.0 3573103.5 518401712.0
-659713726.5 34066850.0 4539268.5 698319845.0
-111168207.5 23435...

result:

ok OK

Test #53:

score: 0
Accepted
time: 29ms
memory: 8656kb

input:

988
851382909 40118653
851382908 40118648
851382923 40118663
851382912 40118676
851382945 40118671
851382923 40118651
851382924 40118664
851382941 40118651
851382954 40118674
851382903 40118653
851382922 40118678
851382905 40118657
851382919 40118667
851382933 40118657
851382916 40118652
851382939 4...

output:

Yes
851382901.5 40118643.0 851382903.5 40118645.0
851382901.5 40118647.0 851382903.5 40118649.0
851382901.5 40118651.0 851382903.5 40118653.0
851382901.5 40118655.0 851382903.5 40118657.0
851382901.5 40118659.0 851382903.5 40118661.0
851382901.5 40118663.0 851382903.5 40118665.0
851382901.5 40118667...

result:

ok OK

Test #54:

score: 0
Accepted
time: 13ms
memory: 8656kb

input:

2000
241018020 288568153
241018031 288568140
241018052 288568101
241018029 288568060
241018040 288568153
241018039 288568118
241018054 288568075
241018039 288568080
241018019 288568126
241018058 288568143
241018045 288568074
241018058 288568097
241018026 288568087
241018038 288568115
241018021 28856...

output:

Yes
241018017.5 288568058.0 241018019.5 288568060.0
241018017.5 288568062.0 241018019.5 288568064.0
241018017.5 288568066.0 241018019.5 288568068.0
241018017.5 288568070.0 241018019.5 288568072.0
241018017.5 288568074.0 241018019.5 288568076.0
241018017.5 288568078.0 241018019.5 288568080.0
24101801...

result:

ok OK

Test #55:

score: 0
Accepted
time: 13ms
memory: 8480kb

input:

170
459989260 497002203
459989266 497002201
459989252 497002203
459989263 497002194
459989259 497002198
459989264 497002203
459989251 497002194
459989258 497002203
459989254 497002203
459989261 497002200
459989260 497002199
459989255 497002194
459989255 497002190
459989264 497002197
459989259 497002...

output:

Yes
459989248.5 497002189.0 459989250.5 497002191.0
459989248.5 497002193.0 459989250.5 497002195.0
459989248.5 497002197.0 459989250.5 497002199.0
459989248.5 497002201.0 459989250.5 497002203.0
459989248.5 497002205.0 459989250.5 497002207.0
459989249.5 497002190.0 459989251.5 497002192.0
45998924...

result:

ok OK

Test #56:

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

input:

180
400125567 423059125
400125570 423059126
400125566 423059138
400125566 423059136
400125571 423059145
400125565 423059143
400125571 423059139
400125570 423059142
400125561 423059131
400125572 423059130
400125564 423059140
400125568 423059134
400125565 423059129
400125565 423059127
400125571 423059...

output:

Yes
400125559.5 423059121.0 400125561.5 423059123.0
400125559.5 423059125.0 400125561.5 423059127.0
400125559.5 423059129.0 400125561.5 423059131.0
400125559.5 423059133.0 400125561.5 423059135.0
400125559.5 423059137.0 400125561.5 423059139.0
400125559.5 423059141.0 400125561.5 423059143.0
40012555...

result:

ok OK

Test #57:

score: 0
Accepted
time: 30ms
memory: 8644kb

input:

1280
841397122 99741629
841397119 99741612
841397164 99741619
841397133 99741606
841397133 99741632
841397160 99741631
841397106 99741619
841397133 99741624
841397104 99741607
841397130 99741631
841397151 99741608
841397123 99741624
841397148 99741623
841397152 99741625
841397112 99741625
841397147 ...

output:

Yes
841397102.5 99741605.0 841397104.5 99741607.0
841397102.5 99741609.0 841397104.5 99741611.0
841397102.5 99741613.0 841397104.5 99741615.0
841397102.5 99741617.0 841397104.5 99741619.0
841397102.5 99741621.0 841397104.5 99741623.0
841397102.5 99741625.0 841397104.5 99741627.0
841397102.5 99741629...

result:

ok OK

Test #58:

score: 0
Accepted
time: 41ms
memory: 8684kb

input:

1642
955215437 72831116
955215435 72831062
955215457 72831058
955215453 72831066
955215459 72831116
955215454 72831105
955215439 72831090
955215471 72831104
955215451 72831116
955215452 72831053
955215441 72831110
955215478 72831057
955215479 72831068
955215439 72831050
955215475 72831088
955215440 ...

output:

Yes
955215433.5 72831050.0 955215435.5 72831052.0
955215433.5 72831054.0 955215435.5 72831056.0
955215433.5 72831058.0 955215435.5 72831060.0
955215433.5 72831062.0 955215435.5 72831064.0
955215433.5 72831066.0 955215435.5 72831068.0
955215433.5 72831070.0 955215435.5 72831072.0
955215433.5 72831074...

result:

ok OK

Test #59:

score: 0
Accepted
time: 19ms
memory: 8456kb

input:

1000
339769684 356922348
339769688 356922316
339769665 356922351
339769669 356922301
339769681 356922301
339769670 356922356
339769687 356922303
339769675 356922355
339769686 356922360
339769684 356922306
339769687 356922369
339769663 356922343
339769678 356922300
339769681 356922363
339769676 35692...

output:

Yes
339769661.5 356922297.0 339769663.5 356922299.0
339769661.5 356922301.0 339769663.5 356922303.0
339769661.5 356922305.0 339769663.5 356922307.0
339769661.5 356922309.0 339769663.5 356922311.0
339769661.5 356922313.0 339769663.5 356922315.0
339769661.5 356922317.0 339769663.5 356922319.0
33976966...

result:

ok OK

Test #60:

score: 0
Accepted
time: 34ms
memory: 8724kb

input:

2310
471261611 788524318
471261610 788524369
471261614 788524531
471261614 788524360
471261615 788524431
471261609 788524424
471261612 788524320
471261611 788524475
471261610 788524336
471261613 788524490
471261618 788524430
471261610 788524334
471261610 788524356
471261611 788524345
471261614 78852...

output:

Yes
471261608.5 788524316.0 471261609.5 788524317.0
471261608.5 788524318.0 471261609.5 788524319.0
471261608.5 788524320.0 471261609.5 788524321.0
471261608.5 788524322.0 471261609.5 788524323.0
471261608.5 788524324.0 471261609.5 788524325.0
471261608.5 788524326.0 471261609.5 788524327.0
47126160...

result:

ok OK