QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#385907#4345. hpmo / 赫露艾斯塔Kevin5307100 ✓162ms15696kbC++231.5kb2024-04-11 09:55:162024-04-22 04:00:42

Judging History

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

  • [2024-04-22 04:00:42]
  • 管理员手动重测该提交记录
  • 测评结果:100
  • 用时:162ms
  • 内存:15696kb
  • [2024-04-11 09:55:17]
  • 评测
  • 测评结果:20
  • 用时:8ms
  • 内存:12772kb
  • [2024-04-11 09:55:16]
  • 提交

answer

//Author: Kevin
#include<bits/stdc++.h>
//#pragma GCC optimize("O2")
using namespace std;
#define ll long long
#define ull unsigned ll
#define pb emplace_back
#define mp make_pair
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
#define srt(x) sort(ALL(x))
#define rev(x) reverse(ALL(x))
#define rsrt(x) sort(rALL(x))
#define sz(x) (int)(x.size())
#define inf 0x3f3f3f3f
#define pii pair<int,int>
#define lb(v,x) (int)(lower_bound(ALL(v),x)-v.begin())
#define ub(v,x) (int)(upper_bound(ALL(v),x)-v.begin())
#define uni(v) v.resize(unique(ALL(v))-v.begin())
#define longer __int128_t
void die(string S){puts(S.c_str());exit(0);}
mt19937_64 rnd(20210448);
ll x[100100],y[100100];
ll A[200200],B[200200],C[200200];
double angle[200200];
int n,m;
vector<int> vec[200200];
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n>>m;
	for(int i=1;i<=n;i++)
		cin>>x[i]>>y[i];
	for(int i=1;i<=m;i++)
	{
		cin>>A[i]>>B[i]>>C[i];
		angle[i]=atan2(B[i],A[i]);
	}
	vector<int> key;
	int s=sqrt(n);
	for(int i=1;i<=s+10;i++)
		key.pb(rnd()%n+1);
	srt(key);
	uni(key);
	for(int i=1;i<=m;i++)
	{
		ll mn=1ll*inf*inf;
		int ind=-1;
		for(auto u:key)
		{
			ll dist=x[u]*A[i]+y[u]*B[i]+C[i];
			dist=abs(dist);
			if(dist<mn)
			{
				mn=dist;
				ind=u;
			}
		}
		vec[ind].pb(i);
	}
	for(int i=1;i<=n;i++)
	{
		sort(ALL(vec[i]),[&](const int &a,const int &b){return angle[a]<angle[b];});
		for(auto x:vec[i])
			cout<<x<<'\n';
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 8ms
memory: 12480kb

input:

9997 9990
9019266 5863617
-9132512 9933564
-3874637 4993765
444830 -2250447
-2352800 3441144
-6132076 -4919200
-1607690 1649753
-3707230 -9677822
-4044043 949637
-7761530 2069488
9475384 4537713
-6619947 -121926
5929373 653750
5738540 -7373755
1630427 2169595
7049000 185616
-4436632 7644104
-7326158...

output:

3060
9965
1328
9230
9805
9086
3403
4006
3620
3208
4783
2504
5939
4772
2873
9652
3564
9755
4567
7515
9422
1443
1304
5268
7008
6781
627
4504
3158
1091
1959
1255
3148
2547
6951
4063
4264
1226
9221
6407
366
9954
1851
3276
9527
2464
5844
9301
2809
4684
557
5498
1277
5084
622
5407
5900
4499
2056
8460
1298...

result:

ok AC

Test #2:

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

input:

10000 10000
-9867885 -6351277
3489722 8586294
-813430 9340951
2086219 9210082
8903276 -6786767
8717742 1297662
8333166 -3317203
7936341 4929952
4912513 9933563
-4537308 -9543067
7319834 8626975
-5937113 -4470138
3427489 -6194898
-7290157 -3404718
-3724079 2294733
7598186 6969998
-9934248 6924016
428...

output:

1907
7090
2721
7527
6591
380
6859
2832
219
8983
4504
5990
8188
7192
3008
7663
6224
2870
7112
7500
7446
7454
9464
5821
4858
7349
3615
6653
8818
4232
8270
1040
6528
1778
3945
2473
1332
2325
1876
5006
338
392
4093
6127
2989
6493
9403
766
6678
7300
9124
1630
4761
4567
4268
8339
6023
3428
764
1134
5
2794...

result:

ok AC

Test #3:

score: 0
Accepted
time: 7ms
memory: 10684kb

input:

10000 10000
-660951 65490
-29833 2757177
-340846 10961
-7150119 33459
5136755 4278
25550 775750
5201020 -5199
75169 4666130
67597 1714309
-36541 -3114964
-4240048 31425
73017 2383801
-94770 -836461
7728250 65154
-62043 -9108010
49090 4597522
-6217034 -71671
-6369695 31577
31865 8971451
72473 9040891...

output:

7583
9183
9015
5447
4309
1070
1333
7323
7525
1228
1184
3552
3773
3930
8888
4113
7627
7200
5071
4711
8329
3099
7264
1170
1218
8959
7187
2395
1515
8663
6838
5848
8183
2830
5087
4162
7787
6508
3651
9866
9149
4065
2597
354
1720
2894
4470
2799
7867
4815
6618
8963
9690
4074
212
571
2749
130
4287
8494
2988...

result:

ok AC

Test #4:

score: 0
Accepted
time: 3ms
memory: 12484kb

input:

9998 9990
7582 3856200
9459 4381
-5500354 -8064
3998 -8251368
3506 6715096
-8509 -321964
1725 -1322233
5849831 -1846
-5027 1011243
2596 1990975
-9353 -1004281
3956 -604279
8402459 6848
5419 -2187141
8567983 -2494
1683 4015848
-7337 8293412
-7173 7399645
3799 8763972
4228499 -1835
-8493 -2845008
-833...

output:

7069
2337
5376
7878
5049
5652
8577
1429
788
1313
5895
6855
9019
8774
2837
9891
362
5746
7769
6415
5320
4445
7259
2844
4822
1544
8112
4537
231
8793
8388
665
5946
6596
9682
6671
8166
970
3073
368
4312
3939
1474
1867
3002
215
8020
9712
242
6990
8999
186
1768
4776
6045
5016
2349
143
1469
7997
8640
6957
...

result:

ok AC

Test #5:

score: 0
Accepted
time: 7ms
memory: 12720kb

input:

10000 10000
-9144786 9458431
9233721 -9868159
-9349753 -9965861
9814616 9358465
9750984 -9543095
-9665224 9051130
9964223 9790510
-9960351 9771782
9534798 9181687
-9569872 -9172559
9221230 -9786591
9879500 9613336
9830155 9270397
-9866671 -9417021
9337577 9481408
9668674 -9921731
-9817467 9225012
99...

output:

4115
4630
6525
2592
5861
9511
811
794
6285
2222
3099
5161
188
4627
3665
2370
6603
941
9205
225
3198
875
4592
2405
158
4931
5954
1796
9431
4053
831
8580
1818
4564
4005
1244
7532
3723
5097
7221
5584
184
3963
7724
4203
1743
3356
9674
8214
9056
6229
2617
3964
8423
4698
5321
8407
5429
6380
154
4469
4646
...

result:

ok AC

Test #6:

score: 0
Accepted
time: 7ms
memory: 12520kb

input:

9990 9990
-967949 32827
-1626409 25231
3914913 -17371
-3340636 -33022
-5664776 7967173
-5125 -27879
4988706 -3540854
-9980324 -14749
2914084 -16185
-3231561 9522
1044674 19300
-3619589 16689
1056583 4919512
-141677 -29040
-2587777 -8824
8185554 -10101
-3482427 -1834
8972857 -3639730
-7063435 -8995
2...

output:

9396
9788
3618
4014
9913
3821
7536
4011
8568
6743
7377
4372
454
9214
5784
3096
8439
3131
943
4356
9898
3196
4800
3945
1318
9253
3979
1274
7838
7147
4966
8788
8566
2955
8900
3889
592
8362
5202
9033
936
4292
7409
2154
8071
4559
7107
8064
1253
5102
6791
7058
920
5508
3323
7186
8490
7671
4278
8525
9782
...

result:

ok AC

Test #7:

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

input:

10000 10000
1968477 4944613
6286972 -9851737
-6437502 -4770833
1151523 -7901737
-3149643 9687929
-2205837 -376397
-1324393 5174345
3034439 6480824
-9341786 -7611299
8694184 -3435575
95532 -7378553
-428305 -2628108
263 -5693153
4995174 -4874425
-5093158 -5437311
5434124 6700984
-984539 2903531
293896...

output:

82
8747
6402
5863
4423
1990
1810
1333
3213
3786
6177
4513
3192
5776
9598
6378
7085
6771
7575
9056
9683
7508
6671
8690
7528
9048
5952
1788
9075
1195
3984
7580
1968
465
85
6753
7404
7073
9521
3696
2790
9732
6330
309
2737
8922
9471
8869
1594
7305
8180
652
1389
8873
2691
2165
7147
3843
2833
8723
4664
75...

result:

ok AC

Test #8:

score: 0
Accepted
time: 3ms
memory: 12564kb

input:

10000 10000
-1326300 -7573500
7443150 -8520425
9706112 5114022
-2518500 -7674600
5016700 630200
9734400 8710400
3048966 -5268394
610442 -1407578
7055300 -101500
616523 3597946
-3141466 6983439
5742991 8144648
5661864 4435109
-2226200 -4249300
-5924600 -9402400
6799900 -3953000
6648000 -8833700
80689...

output:

6529
5716
3896
9180
6730
1567
402
2831
1282
7000
5945
8750
4007
3717
834
8014
516
272
7715
1891
9825
1428
9150
7154
7787
3316
7839
2135
2215
9264
1732
9074
3350
3848
2296
7965
4316
6053
5188
9851
8723
2878
2863
1382
8791
7864
1491
9773
7206
3656
5616
1187
4603
7480
3995
9369
9798
8268
44
7241
4966
6...

result:

ok AC

Test #9:

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

input:

10000 10000
-2318095 2019446
-4035918 2985975
713901 -223858
3296173 -824906
-83732 1397407
-316288 128177
-1184337 -2715514
18449 -3918764
482679 -859441
2741883 -4078535
-5781803 1089808
-2596705 -3341805
-3283602 4287650
-204221 2840836
-1521345 -11681
5377933 4075120
-862909 -1012305
-616438 -64...

output:

2071
7002
506
9793
4865
5988
7322
3784
2491
2398
6652
7504
8570
8550
2816
3169
3844
8658
4531
9872
5912
8677
2566
3149
5851
4474
9459
806
9070
7593
4945
7259
2366
4397
4653
966
3279
5805
8656
9478
5049
1706
9020
3262
7120
4916
107
5532
6592
5407
2073
9433
9943
1944
6371
1541
5555
2991
6204
362
9880
...

result:

ok AC

Test #10:

score: 0
Accepted
time: 3ms
memory: 12424kb

input:

10000 10000
30399 911905
6099694 -822955
-1970492 1924582
8133655 -2339409
1225483 -1771551
-578009 -1208298
-5626070 5251285
-3033849 -8699056
5626898 3642052
-2037392 -1207307
-6932083 -3926601
7017312 -2624958
-4505258 -3199363
3196125 4153290
5919593 3128640
-5235780 -3147933
-4493757 162244
573...

output:

4214
1862
7545
6143
2165
5491
555
9541
9197
590
6245
1176
4233
1495
8898
7898
8376
3286
9359
682
4801
8910
3926
2664
5743
5790
6436
6623
1435
1133
4762
7960
95
2588
3504
533
7055
7354
3397
3449
9397
6444
1179
4712
5871
493
6599
4111
5341
6499
5294
4855
2317
6539
4268
5736
8815
4035
9269
1166
633
848...

result:

ok AC

Subtask #2:

score: 30
Accepted

Test #11:

score: 30
Accepted
time: 141ms
memory: 14808kb

input:

100000 200000
-8961334 8961334
-7613572 -7613572
-3090937 3090937
8569374 8569374
-526841 526841
2030109 2030109
829999 -829999
6793124 6793124
-5100765 5100765
-4111697 4111697
5995701 5995701
-3387024 -3387024
1395655 -1395655
1161722 -1161722
7911524 7911524
307563 -307563
1112474 1112474
-131073...

output:

16272
96008
86042
23363
194120
188746
26600
48589
141832
144322
181105
144045
12181
31308
96122
6752
139551
89166
85894
16636
110914
159678
94045
171103
100400
43345
169318
92421
114663
87093
130852
133312
50167
39283
130161
40578
21072
48387
138235
143617
29536
131060
28862
182829
140394
103091
114...

result:

ok AC

Test #12:

score: 0
Accepted
time: 152ms
memory: 15352kb

input:

99995 199993
-6901477 6901477
-1845889 1845889
934067 934067
4499968 4499968
-7373617 -7373617
9655283 9655283
9909636 9909636
3781678 3781678
8382976 -8382976
9572634 9572634
5961770 5961770
-6817835 -6817835
1707317 1707317
8703130 8703130
3783006 -3783006
-4869514 4869514
-5733646 5733646
-418580...

output:

75644
182072
74726
24965
52555
65563
44727
75293
47933
18057
43026
181894
133071
74776
127101
138961
67627
120901
59104
189284
67412
171388
48735
198178
188581
95299
21612
194077
195702
56658
30657
29680
42338
38459
12314
71760
12505
98105
30681
91093
55686
68703
6966
126190
5243
87478
76437
43581
1...

result:

ok AC

Test #13:

score: 0
Accepted
time: 148ms
memory: 14796kb

input:

99992 199994
88614 88614
7096410 -7096410
3894885 -3894885
67776 -67776
-8727157 -8727157
-29896 29896
8541631 8541631
-15653 -15653
-2318947 2318947
1990132 1990132
-7126 -7126
-2096941 2096941
87950 87950
-40903 -40903
-19865 19865
9066395 9066395
-8750432 8750432
-14428 14428
8790520 8790520
-466...

output:

66817
10101
194168
167505
42453
72796
193380
1089
95772
17657
167841
44256
180516
190944
69697
7849
90907
84678
22737
11093
103839
179465
30305
189080
14496
188892
104890
21254
87106
123443
168131
124927
192157
37890
178465
151224
129770
194330
33605
82283
156229
182260
86398
35642
20080
172078
1732...

result:

ok AC

Test #14:

score: 0
Accepted
time: 139ms
memory: 14372kb

input:

100000 199990
-2262 2262
9855799 9855799
8873539 8873539
4744 -4744
-5302050 5302050
-5359476 5359476
-5002234 -5002234
-8027512 8027512
-6100 -6100
6259671 6259671
4922 4922
7251 7251
-4096997 -4096997
-693 693
-9210010 -9210010
-1651967 1651967
3644 3644
-5324 -5324
1949 -1949
7733 7733
-1155 1155...

output:

81011
188717
111050
100908
86865
94956
157219
91674
113683
89643
7050
37849
146117
154519
48981
142915
98593
197557
65421
53936
121056
187268
97162
72281
190084
145
91128
113536
193527
18387
91646
43418
147723
113030
172356
160708
1043
169587
10387
84811
133349
129916
155574
185870
118447
175029
856...

result:

ok AC

Test #15:

score: 0
Accepted
time: 155ms
memory: 13976kb

input:

100000 200000
9046132 -9046132
-9036450 9036450
-9419376 -9419376
9775641 -9775641
-9561024 -9561024
9314457 -9314457
-9542725 -9542725
9441387 9441387
-9331034 -9331034
-9653540 9653540
-9914585 9914585
9434612 9434612
-9219316 9219316
9124798 9124798
9841837 9841837
-9145939 -9145939
9317396 93173...

output:

146837
145213
85850
75326
56369
17123
84293
36295
110508
177803
194915
192400
107033
151565
10284
44411
1007
51076
54767
140224
143875
185916
54229
163013
67825
199189
125445
151768
91974
18352
23828
35980
123153
139331
6120
75738
131836
73663
87041
66405
51952
30024
41172
121313
153083
121601
51844...

result:

ok AC

Test #16:

score: 0
Accepted
time: 162ms
memory: 14104kb

input:

99994 199994
4956621 4956621
-4358823 -4358823
1056343 1056343
-9986 -9986
-7565 7565
3063855 3063855
-15131 15131
-943318 -943318
20729 20729
4624729 -4624729
2636623 -2636623
-19923 19923
3883762 3883762
-7257661 7257661
8029 -8029
23678 23678
-20009 20009
-7424 7424
-5431 -5431
-32667 -32667
4562...

output:

143886
44968
52652
59589
41451
125057
96977
140608
148503
40816
123468
74344
191150
47939
170989
92576
141446
22209
66330
184360
117057
10648
123921
112746
192633
56764
127465
55253
3648
22777
173981
51398
114517
5841
64760
56436
160710
40427
75153
112285
173193
169134
145494
175914
120831
5596
1519...

result:

ok AC

Test #17:

score: 0
Accepted
time: 152ms
memory: 14812kb

input:

100000 200000
-4834102 -4834102
5022121 5022121
6712316 -6712316
501609 501609
-6567565 -6567565
2112388 2112388
135850 135850
9040818 9040818
-7430373 -7430373
-280592 280592
-7143119 7143119
8061435 -8061435
7982642 7982642
4434783 -4434783
6517450 6517450
-1450938 1450938
5380539 -5380539
-467314...

output:

92395
16100
89170
90484
139398
55521
12220
85042
32186
32397
95822
155508
164169
139172
25574
155568
122447
1161
31591
80283
63822
31662
138216
126541
96191
2445
92748
8115
199738
12654
171200
1385
26215
161252
91810
105622
77197
162417
121047
1777
86930
130814
38336
97000
56342
22807
171203
137813
...

result:

ok AC

Test #18:

score: 0
Accepted
time: 139ms
memory: 14616kb

input:

100000 200000
-4054600 4054600
-7279300 7279300
-7314500 7314500
-7425563 -7425563
9683145 -9683145
5107500 -5107500
8673600 -8673600
-5867000 5867000
-5227842 5227842
157100 -157100
-9963728 9963728
9768949 -9768949
-5435576 5435576
3784700 -3784700
4851500 -4851500
1340500 1340500
126129 -126129
-...

output:

7412
189262
112378
110829
100237
105611
168537
136492
123338
45178
131836
15457
195130
82144
92088
176314
125512
196802
165361
108791
6252
149251
79176
127643
126350
187176
26960
161961
162351
134105
62033
130476
80786
140205
33803
154099
53620
123200
171498
183551
120967
175976
167193
59727
170162
...

result:

ok AC

Test #19:

score: 0
Accepted
time: 143ms
memory: 14440kb

input:

100000 200000
862879 862879
1706435 1706435
3765244 3765244
-308612 -308612
-1794479 1794479
-2257534 2257534
-723517 723517
-3244580 3244580
887265 887265
-1954969 -1954969
1397202 -1397202
-318905 -318905
-4927517 -4927517
-1328060 -1328060
3126144 3126144
-2144656 2144656
1433235 1433235
3902973 ...

output:

17018
158732
123319
159100
137788
63413
165905
34220
64481
165039
18880
17645
156453
89515
106097
131955
179643
24072
544
37971
161604
107819
145574
130103
54251
54778
76156
103037
85641
36871
62439
178670
61231
11552
1008
78789
187891
140109
18628
35902
130448
20383
116241
107400
10845
140590
19492...

result:

ok AC

Test #20:

score: 0
Accepted
time: 160ms
memory: 15252kb

input:

100000 200000
3759321 -3759321
3655283 3655283
-3682409 3682409
5518887 -5518887
127820 -127820
357474 357474
-2169485 -2169485
-6574572 6574572
-6166766 6166766
-2287638 -2287638
6842868 -6842868
6145121 -6145121
1834545 -1834545
-4493202 -4493202
-2423151 2423151
-5017153 -5017153
-1814368 -181436...

output:

43529
85768
5270
101394
61832
177686
33587
37338
178039
53819
37392
17306
136526
18588
113908
163804
21060
113097
64486
171199
121073
42979
142635
26960
61888
144073
20883
14058
142801
94599
149941
127289
165010
67893
180140
20067
96443
90357
131479
167782
44235
109603
171010
179577
194589
97601
326...

result:

ok AC

Subtask #3:

score: 50
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #21:

score: 50
Accepted
time: 130ms
memory: 14624kb

input:

99995 199999
5320759 3219017
-7891980 -7312757
2180279 9474165
5031926 -4436871
-7629930 762411
-9918337 2445040
7782870 -3248418
5660195 -6031840
-3452958 -2244908
9268868 -3566739
8119257 -3126185
6361275 -4963409
1043913 -6959661
7088913 -5089638
-9265623 -9227310
2423735 8343518
-4698952 8406424...

output:

50527
134665
156408
191946
147356
101611
7498
80712
12419
148562
168220
108871
115554
111069
2361
31446
131993
26246
21227
26748
17821
64003
114064
172197
120064
151117
95631
2081
74978
126138
33621
46591
48244
29682
129906
12796
69802
36745
36203
94557
123363
67317
126721
20488
112942
170197
146805...

result:

ok AC

Test #22:

score: 0
Accepted
time: 150ms
memory: 15596kb

input:

100000 200000
4274032 -8564615
1752457 -7056073
-7978532 8824025
-3167506 -5248972
5711527 9730398
7728051 3966415
4544367 -5526016
-5239209 -6317728
-4686212 -6910566
-9122095 -5994275
9784510 6801112
-7343677 -82634
2569012 -5796893
-9576922 -9825877
-3967715 -6763234
823556 3427207
2193794 203189...

output:

99865
15512
47638
118749
72125
131394
96716
150065
41761
159659
149280
89425
12245
66595
64430
66029
46983
114051
70225
168074
128399
70021
83726
53917
167543
67086
114755
70527
104492
143569
45182
143084
47424
53205
115861
61993
98848
44108
183920
112013
115935
189041
16252
84390
123967
191684
3861...

result:

ok AC

Test #23:

score: 0
Accepted
time: 157ms
memory: 15220kb

input:

99997 199995
4221355 99124
-52606 7054416
7502472 60863
-80879 -2571632
-6014914 -74269
26607 5477733
-8554041 23103
-4433926 4139
93315 8678552
6410846 62326
-1633 -7998413
-790 -1445583
98650 -7841246
-60132 3337680
4830 -1929327
-79952 -1954585
55744 -6424464
-9773597 -3353
-21614 6828894
-43354 ...

output:

41517
109232
159272
134504
138114
10765
12511
42346
158208
137256
193717
126032
166664
169182
64895
155345
134430
31192
154285
160905
85411
116469
166945
65319
103557
34400
3081
121959
75449
82416
82297
190663
173703
158412
4586
163218
87642
84763
38789
188526
107166
173174
91430
165583
45312
34474
...

result:

ok AC

Test #24:

score: 0
Accepted
time: 139ms
memory: 14296kb

input:

99996 199993
-7485809 497
1390443 -5441
-5401475 8919
9194227 -8110
-5001 -1917281
-8122 -4750988
3536148 -3021
2408 -7035391
9543167 -3551
-9884 -7750908
-1174 433673
-5517092 -5840
2404624 7663
-2932745 -9442
9878 -1142401
-40 -6333670
-440 5237984
441 4663960
6850 5556721
-4644 7013362
5085996 -5...

output:

171779
7175
58290
87931
121532
62681
109059
198481
65386
31843
120696
93473
179688
182395
84558
79639
99834
138717
115056
195533
154267
11923
19409
24204
198573
89734
120980
194711
180192
153282
152261
169984
48150
3661
143403
147750
193693
161782
6250
47340
159967
129794
91143
53203
189494
147336
8...

result:

ok AC

Test #25:

score: 0
Accepted
time: 123ms
memory: 14132kb

input:

100000 200000
9836027 9259046
9141664 9853111
-9592540 -9234225
9395407 -9818901
9155502 9005445
-9035350 -9065876
9148785 -9976277
9250953 9602169
9564656 9758527
-9991922 9362223
9638786 -9994059
-9519393 9169397
9455605 -9117629
9610585 -9723463
9397071 9523003
-9770348 -9131324
9430686 9493469
-...

output:

146114
125967
185716
189432
24264
25225
177661
41456
43081
46256
54845
66115
4300
142678
174619
183450
113776
170656
143811
145053
147367
99378
92972
146067
153328
118885
194938
195519
176435
20896
81926
49036
189911
126986
159079
48035
187245
33865
8443
74748
39445
194267
170029
43686
84638
65333
7...

result:

ok AC

Test #26:

score: 0
Accepted
time: 157ms
memory: 15696kb

input:

99998 199992
8965847 -33318
-2822530 17955
3291890 19895
6404732 -33096
-4434952 -7491900
1850415 4902
-2754428 -4964511
-6757281 -23208
3492139 -9242
-7393956 1730858
-2448932 -29478
9781425 -20171
4105143 7574939
5191560 1452540
-9242683 -4228
-4230820 -4813
4039260 25453
-26169 27979
158858 30833...

output:

148272
165404
93148
79606
144992
69666
131478
195216
56587
167678
42229
48771
122113
138550
86311
169904
193923
38075
88769
137124
65125
115629
150909
74844
169616
13497
78123
135232
64035
134653
117458
130649
37291
64743
49391
58549
31492
19110
9587
124484
164737
28134
11037
49059
119164
44493
1869...

result:

ok AC

Test #27:

score: 0
Accepted
time: 156ms
memory: 15392kb

input:

99991 199999
-4778141 6528999
4681620 6930238
8098538 9671950
-6158979 9000870
-693504 -1820831
3125268 391519
9337880 -458792
-7176026 1646623
-6517399 -3830364
-8768363 -6040522
-6722047 3633670
2719325 3251406
3328318 9817233
-204781 6152270
9951727 1109754
-3881139 -1413837
-6042033 -4971163
695...

output:

174359
141792
31783
141628
128624
171573
99029
55036
104195
169074
180492
54377
162868
110325
82735
187392
21681
146478
143541
4121
187344
8848
192343
10373
67940
69472
32643
32528
2730
161615
16892
127214
89641
178468
89595
71808
71711
141267
164178
190597
79099
129919
82344
98686
167530
66779
4138...

result:

ok AC

Test #28:

score: 0
Accepted
time: 152ms
memory: 15664kb

input:

100000 200000
-1744459 -8428180
-3155400 -7807900
-1953045 -3236722
6760721 2177110
-565496 2234942
922485 -1941246
2272900 -7446700
-2122631 6043836
8207129 -9929791
-7681076 3410905
1342300 2529900
8212961 -7115599
-1956900 -5681600
-1861593 -154191
35500 6507000
2403473 -276174
-6955200 2729300
-...

output:

73155
14827
111513
17452
12151
134664
129307
153786
16475
100915
66221
136398
174816
38570
65757
77301
87642
40392
17462
94110
64258
183561
167367
158944
76841
37502
182393
89267
35340
53215
152243
160224
98866
169328
176518
176017
168655
140139
151047
116823
41948
162786
77002
150917
117669
57419
1...

result:

ok AC

Test #29:

score: 0
Accepted
time: 160ms
memory: 15560kb

input:

99995 199995
-2481916 -1069451
-2865135 1293145
82997 -5359290
1272006 2556169
783178 -1900007
-3873534 6407112
1782675 -3201962
3526316 -2582971
-3469418 -3259646
1238110 -2115857
-2695529 417070
-2122003 1210063
3593136 1365617
74629 5321678
1678034 1570779
3448419 -4554050
2584010 2489252
5234418...

output:

135536
104631
106257
142127
19448
171905
126763
110445
15268
130147
43271
97238
176538
87373
150658
182025
69870
5879
99081
82354
191220
51038
56875
176898
28072
125858
42031
180049
8102
45701
183234
170699
14706
95081
69829
108336
103265
122245
5714
161723
182451
104954
115895
195092
87985
35364
42...

result:

ok AC

Test #30:

score: 0
Accepted
time: 133ms
memory: 14712kb

input:

100000 200000
-1007327 669624
5756005 -746672
-54422 5968122
5710841 1217489
-7980712 -460049
-2209478 2805265
-8072576 276441
65075 -2428003
253080 -1498180
1823714 -6230033
-7219178 -3498801
-3554627 -14377
437142 -5724539
1736810 3638150
518595 -3074244
1821457 -5798646
-3022760 5457195
1826452 -...

output:

94791
35751
140081
1082
108018
91925
75193
149984
23565
48287
53979
7810
109159
171640
129262
97234
75880
84917
132107
35964
89204
81842
80558
48584
64415
38786
184445
198869
169598
157
170842
16279
4357
35916
99344
160391
96708
154562
37155
26213
141751
21878
15210
120790
169482
154367
32346
195252...

result:

ok AC