QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#386004 | #4345. hpmo / 赫露艾斯塔 | alpha1022 | 100 ✓ | 459ms | 14440kb | C++14 | 1.1kb | 2024-04-11 10:56:16 | 2024-04-15 20:59:01 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e5;
const int M = 2e5;
const int B = 250;
int n, m;
int x[N + 5], y[N + 5];
int a[M + 5], b[M + 5], c[M + 5];
double dist(int i, int j) { return fabs((ll)a[j] * x[i] + (ll)b[j] * y[i] + c[j]) / sqrt((ll)a[j] * a[j] + (ll)b[j] * b[j]); }
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
bool vis[N + 5];
vector<int> key;
vector<pair<double, int>> line[N + 5];
int main() {
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; ++i) scanf("%d%d", x + i, y + i);
for (int i = 1; i <= m; ++i) scanf("%d%d%d", a + i, b + i, c + i);
for (int i = 1; i <= min(B, n); ++i) {
int j;
do j = uniform_int_distribution<int>(1, n)(rng); while (vis[j]);
vis[j] = 1, key.push_back(j);
}
for (int i = 1; i <= m; ++i) {
int res = 0;
for (int j : key)
if (!res || dist(j, i) < dist(res, i)) res = j;
line[res].emplace_back(atan2(-a[i], b[i]), i);
}
for (int i : key) {
sort(line[i].begin(), line[i].end());
for (auto [_, j] : line[i]) printf("%d\n", j);
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 19ms
memory: 8788kb
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:
829 289 5007 6293 1820 4796 6328 3056 8114 4454 7060 3031 8829 2380 4732 3367 2927 9813 8630 4548 4114 8844 3897 2022 7868 1751 6402 7041 1965 3949 1330 4186 6007 2615 9035 1093 4831 2634 2218 5446 4685 2790 5615 2785 9515 4087 5881 8340 5441 9148 7088 8332 317 7355 2853 2567 6731 1776 3386 8847 671...
result:
ok AC
Test #2:
score: 0
Accepted
time: 19ms
memory: 8608kb
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:
7119 8356 9604 5595 920 3506 1219 7911 1962 6255 3620 6747 601 9920 3757 9328 6375 6355 6453 1183 5378 389 6496 4972 4541 3789 4007 8289 6702 2161 6374 458 7990 300 4206 3254 4292 3265 2208 9319 1048 9084 159 6852 4754 8389 3791 2158 1738 6870 8429 867 8204 2998 5949 160 5490 9623 8789 2627 6075 288...
result:
ok AC
Test #3:
score: 0
Accepted
time: 23ms
memory: 9612kb
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:
8084 2758 6973 3240 7368 4299 8002 2082 9926 1034 3329 8456 3311 5252 4732 1792 2146 6619 4787 2967 7306 269 575 881 2881 2934 2975 3330 3398 3455 3906 4104 4409 4550 4568 7587 7722 9333 9396 9390 2087 4771 4617 4688 5490 6332 117 5539 5911 7158 5935 6463 2150 9420 5141 3625 3327 807 9136 5368 1856 ...
result:
ok AC
Test #4:
score: 0
Accepted
time: 23ms
memory: 9752kb
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:
5604 2924 5041 9898 6060 2227 6648 8494 7223 4004 1892 8284 7613 1079 7130 1621 8028 4111 8226 8879 5713 7501 1146 5007 6275 8277 5386 3979 6133 6315 9742 8109 8346 4577 8838 6382 9378 6090 6131 7478 6108 3013 497 4607 1662 768 6302 1179 1151 2375 8124 919 1331 1578 2902 4199 2701 803 4413 8177 9268...
result:
ok AC
Test #5:
score: 0
Accepted
time: 23ms
memory: 9192kb
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:
1433 6513 5227 9100 9880 7404 1096 7814 4353 4868 6069 6393 9040 7002 1635 38 420 6189 3040 4059 1458 7507 3092 7514 1104 722 1590 4382 5141 5225 6336 7639 7975 9276 1214 4124 9744 2904 8001 9077 5820 4067 4099 5261 9044 9063 3366 8475 3436 4982 7210 3743 9927 48 4858 8761 9099 8088 4530 1381 2100 2...
result:
ok AC
Test #6:
score: 0
Accepted
time: 19ms
memory: 8924kb
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:
6600 7161 478 564 4065 7940 8876 9794 321 3437 7800 7640 5487 5758 9416 4716 3826 1301 5827 1554 4713 2113 2637 5290 5606 7154 3321 6329 9902 1656 3682 7045 7083 5692 8299 809 6003 4936 7155 3680 5733 5815 6950 9729 9771 2696 2874 9704 9249 503 1200 4956 9260 445 6300 5567 779 807 3434 1323 935 1874...
result:
ok AC
Test #7:
score: 0
Accepted
time: 23ms
memory: 9168kb
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:
2841 5316 5212 6289 9101 9013 3729 7856 8018 8966 1277 1437 4805 5161 5186 9505 4550 5635 1100 1114 1329 4101 4475 4552 6866 8622 8645 9853 4873 5441 6044 1831 7699 819 1364 1510 4084 4956 6574 9287 4391 8738 6951 3372 4709 4189 4447 5945 8210 9097 4924 6206 1390 3553 5676 4683 5628 5738 4569 2188 3...
result:
ok AC
Test #8:
score: 0
Accepted
time: 19ms
memory: 8400kb
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:
187 3582 9835 753 3551 3425 9372 4433 6445 9186 4570 7077 7707 7985 4644 2450 7884 5814 5928 9753 4121 6267 7792 2969 7970 2204 2946 1782 3979 9479 4022 645 8768 4823 4734 1933 7526 1693 9720 4393 7800 6550 1682 5222 359 8976 3420 6197 9042 6301 9306 9099 3663 6932 9802 8694 766 7656 5974 3543 339 7...
result:
ok AC
Test #9:
score: 0
Accepted
time: 23ms
memory: 8808kb
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:
4742 1358 2523 884 7547 7063 1824 1685 291 4867 1215 5407 5511 6755 8776 8352 2514 3135 8726 2334 8060 7309 6911 2154 1295 8933 6605 2454 2902 540 9793 4865 2918 8329 2585 3179 9690 6261 7560 195 7393 2175 9160 8289 5206 2981 9359 3000 3516 7083 5142 1246 6044 6112 6326 244 1954 8884 2800 8321 4637 ...
result:
ok AC
Test #10:
score: 0
Accepted
time: 23ms
memory: 8976kb
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:
8279 7598 3291 1959 58 814 2129 5501 4173 7286 6389 3150 563 9137 5502 5045 7688 7741 5590 4646 3757 240 8534 8002 76 1199 8364 1318 6628 2078 1997 7648 9277 5743 6376 6934 7091 1253 3525 3625 6657 1649 6879 9751 8032 8344 5962 1674 599 448 8026 8203 5956 6651 9777 2425 891 8787 1546 311 3553 6169 7...
result:
ok AC
Subtask #2:
score: 30
Accepted
Test #11:
score: 30
Accepted
time: 451ms
memory: 13704kb
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:
59665 156055 7099 16639 63304 134922 138693 93720 67762 65330 49014 83983 40294 49020 95482 111719 114932 45932 104220 143370 132505 47272 180277 153207 108296 130202 97196 10465 32976 114172 122627 127788 191150 79760 116343 32886 80846 66499 114759 189069 17597 54092 58926 69508 31723 162174 2147 ...
result:
ok AC
Test #12:
score: 0
Accepted
time: 437ms
memory: 13716kb
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:
106272 152067 104331 49041 19565 172868 564 109526 27240 23075 197644 37540 47669 98232 166560 37253 16910 33466 183186 26296 123226 142028 44377 10179 61205 110926 181304 146295 57200 33002 96373 132706 184888 105177 46516 191017 187816 120521 85470 127596 114191 42484 46872 113404 130280 190947 11...
result:
ok AC
Test #13:
score: 0
Accepted
time: 451ms
memory: 14016kb
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:
53773 164264 114060 120870 75718 179752 53544 123324 32232 99515 192902 163681 114105 162036 175567 121732 75132 12876 192193 173821 99591 140843 103719 32369 33788 105730 119854 76157 98829 84089 63598 35615 173083 188882 155566 30585 123879 47894 108873 165689 24544 83908 123887 179166 170643 1682...
result:
ok AC
Test #14:
score: 0
Accepted
time: 455ms
memory: 13988kb
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:
92981 138613 54489 198369 155115 191697 161172 171780 120687 139573 68275 126670 43692 149528 95656 186321 184433 9749 84836 134627 103522 81225 96746 153076 101538 191718 36421 51933 6109 193197 48847 75415 16018 42737 151542 25907 95691 126312 6582 16019 96017 105077 82415 87016 13797 183975 3671 ...
result:
ok AC
Test #15:
score: 0
Accepted
time: 425ms
memory: 13184kb
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:
42171 126565 181826 59518 124850 191947 4035 11465 71072 158571 194485 24571 144394 105214 70701 113212 33863 99933 187233 59039 90405 104326 10061 137955 5958 127141 35500 177968 178333 73131 104978 179869 37321 4129 33537 34796 102470 105745 20122 38869 68276 67575 107872 162820 32088 82033 186415...
result:
ok AC
Test #16:
score: 0
Accepted
time: 456ms
memory: 13968kb
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:
62915 103076 87171 146994 79649 154680 164644 12753 6762 77712 83463 107307 54623 99998 182995 160289 38407 53945 81707 169384 155806 175054 15733 38097 43736 44862 75459 114107 132120 142271 151992 180577 184664 72801 43330 67134 85018 152374 191281 45027 54950 112202 91686 76473 138019 91981 64836...
result:
ok AC
Test #17:
score: 0
Accepted
time: 450ms
memory: 13696kb
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:
145090 145503 37760 3294 176866 190488 147410 100905 96975 22437 94538 4762 7669 32351 134786 153018 2259 190374 125216 149134 15875 158494 32052 57112 48868 114435 124167 191251 167496 60751 136529 143101 41365 197582 49846 33104 189264 72279 183763 63226 66133 48505 23749 120888 140247 114094 1567...
result:
ok AC
Test #18:
score: 0
Accepted
time: 439ms
memory: 13920kb
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:
111410 58679 103226 78473 132516 39729 11174 91118 199764 185192 64479 19688 66699 119028 97929 180755 16966 53999 78853 71132 83465 17534 67938 164895 99636 110676 8178 122718 134910 21037 138245 133763 379 6502 76010 15320 95626 192283 81558 15606 57446 82884 27783 80950 29231 185012 118664 76154 ...
result:
ok AC
Test #19:
score: 0
Accepted
time: 452ms
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:
131787 178096 118038 65546 125595 110600 158136 10936 42430 187219 161411 165681 75889 50691 19907 20539 31141 199773 132447 48447 118810 28974 22926 1506 187621 191251 191974 106725 83506 134728 135972 12520 85262 157784 131881 141781 154809 22069 34794 83223 193075 193249 95074 99113 179830 130941...
result:
ok AC
Test #20:
score: 0
Accepted
time: 424ms
memory: 14068kb
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:
83009 74881 124028 185357 104730 143164 13151 131101 25025 44744 120819 192482 144250 198304 4820 12378 146347 199488 104360 128045 141721 101251 121123 113504 166903 47173 141295 172489 190913 39366 120866 139917 131131 37223 2267 13053 84768 182272 144300 48355 172663 75879 159691 179513 72252 891...
result:
ok AC
Subtask #3:
score: 50
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Test #21:
score: 50
Accepted
time: 425ms
memory: 14088kb
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:
156787 119685 178667 69136 3669 168008 23286 17130 48725 143397 176972 61922 165203 37285 50898 110983 157099 5451 70085 164109 26850 196161 139381 149838 22717 34000 47378 23068 44311 38320 131624 114624 1488 79832 1180 112856 97916 146860 5482 73568 97216 107066 195315 9614 169930 187683 112447 16...
result:
ok AC
Test #22:
score: 0
Accepted
time: 450ms
memory: 14176kb
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:
15310 169355 140078 150234 17341 9887 186581 130484 36846 134459 126499 104441 113681 144433 33928 159662 1645 34083 58879 161541 12036 86267 63161 160266 56270 55220 85420 119687 120553 167846 133656 196030 133600 176216 22487 145049 98 18397 49271 124593 75697 20845 152644 22638 37153 25017 28831 ...
result:
ok AC
Test #23:
score: 0
Accepted
time: 446ms
memory: 13832kb
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:
178002 141567 148073 29390 30806 42650 87044 42738 52941 118700 141327 8551 39950 114875 134706 995 42050 67182 126194 146450 153636 157179 96043 45981 148116 178108 119581 152669 98978 109834 154961 189188 142803 65723 89772 73830 21954 31637 58259 58675 104946 130535 149877 161510 167875 70105 127...
result:
ok AC
Test #24:
score: 0
Accepted
time: 448ms
memory: 14076kb
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:
74274 41492 113671 123127 33131 20994 78597 31557 8654 106526 107676 132767 176465 107781 148343 68969 15071 26329 130753 182788 185819 35895 175074 142566 321 129489 66911 68063 16831 58361 120174 136547 8728 103597 50393 179021 20743 77058 87508 98111 135714 144921 1531 170939 73336 155229 101816 ...
result:
ok AC
Test #25:
score: 0
Accepted
time: 448ms
memory: 13248kb
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:
162379 188288 86333 135642 32738 5481 10814 94798 39966 191887 106412 115333 110256 159075 198326 170922 98406 192539 21716 34471 85619 159713 682 45954 141372 108533 116843 129669 129554 78566 68373 27909 92622 193153 122471 34656 116769 86079 21122 14754 39268 105485 43331 165117 99562 121974 1003...
result:
ok AC
Test #26:
score: 0
Accepted
time: 446ms
memory: 13932kb
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:
134591 15447 116534 107261 173807 199519 195398 144230 168752 140525 180925 186542 108335 159772 67440 86109 20733 32299 167186 254 79426 197258 45998 184633 182939 130187 165410 1620 166223 170264 171748 137742 119237 16612 77660 92351 112868 145140 153173 142544 14095 87983 89660 114235 131810 233...
result:
ok AC
Test #27:
score: 0
Accepted
time: 452ms
memory: 13376kb
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:
12971 176726 19412 93238 141843 181407 184224 189292 48975 175559 180705 2112 12603 41682 49867 72725 101029 145216 148432 160606 187148 856 3586 4758 28593 31775 46711 79247 83042 91834 102703 139752 171793 177055 182059 186169 199846 3055 3521 10790 31320 36909 52384 55626 72270 84666 124819 13339...
result:
ok AC
Test #28:
score: 0
Accepted
time: 453ms
memory: 14120kb
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:
21308 63372 61739 23914 101571 133390 77826 119 187433 57800 143346 83028 177926 43590 57345 83164 138954 61446 142532 32397 116828 153853 162797 155810 112166 145301 53763 149756 29207 189108 65372 88297 22692 25644 180154 108792 138961 87995 189432 59806 196332 78178 185979 31782 21134 66128 12844...
result:
ok AC
Test #29:
score: 0
Accepted
time: 446ms
memory: 14096kb
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:
126067 174862 130089 137797 162245 184867 104135 37006 71328 128640 149819 135916 125602 172497 23591 75384 34165 142083 81794 111254 170154 9184 20931 190894 5432 75596 115829 15196 153992 46916 162208 172625 114064 93496 94962 149636 15731 111486 126529 98392 172955 44795 9269 108254 129135 33237 ...
result:
ok AC
Test #30:
score: 0
Accepted
time: 459ms
memory: 13848kb
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:
145899 40809 52496 168595 116999 132984 56317 15872 40767 138886 40615 99003 108854 151046 126431 54702 84328 88386 122635 188738 5514 84844 1945 150917 94065 8575 14379 54867 103109 19845 23057 57642 177307 93676 165935 180088 32934 76260 77148 141271 150639 159530 1605 172245 519 46667 75684 80088...
result:
ok AC