QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#788004 | #9674. Beef Tripe in Soup Pot? | rotcar07 | AC ✓ | 27ms | 4276kb | C++23 | 577b | 2024-11-27 15:32:39 | 2024-11-27 15:32:47 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
std::ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int n;cin>>n;
vector<pair<int,int>> A,B;
for(int i=1;i<=n;i++){
int a,b,c,d;cin>>a>>b>>c>>d;
if(c&&d) (a<b?A:B).emplace_back(min(a,b),i);
else if(c) A.emplace_back(a,i);
else B.emplace_back(b,i);
}
sort(A.begin(),A.end()),sort(B.begin(),B.end());
cout<<A.size()<<' ';
for(auto [x,y]:A) cout<<y<<' ';cout<<'\n';
cout<<B.size()<<' ';
for(auto [x,y]:B) cout<<y<<' ';cout<<'\n';
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3612kb
input:
8 9 11 0 1 1 8 0 1 15 7 1 0 3 13 1 1 6 12 0 1 16 5 1 0 4 2 1 0 10 14 1 0
output:
5 4 7 8 3 6 3 2 1 5
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
5000 9945 4555 1 0 4654 1420 1 1 53 8338 1 1 1226 2733 0 1 2285 7284 1 0 2104 2293 0 1 7012 4208 0 1 5661 5218 1 0 8307 1142 1 0 3027 2151 1 0 3182 1546 1 0 3398 867 1 1 2380 9550 1 1 4211 3117 0 1 7281 2251 1 0 1890 8135 1 1 9954 3991 1 1 9917 4976 0 1 8707 5350 1 1 9325 4070 1 1 5906 7500 1 1 875 ...
output:
2454 631 3061 2087 4975 3912 4150 4148 2645 781 584 4126 4410 208 763 4756 1105 159 2360 1987 3 2332 530 383 3632 4217 833 3460 1893 1298 2131 493 4450 4392 3991 2076 1300 4056 1709 388 2608 2637 2556 1660 4015 4164 4886 1366 4669 4630 788 949 1879 1181 2376 1888 4833 532 1065 3141 3364 114 828 3682...
result:
ok 2 lines
Test #3:
score: 0
Accepted
time: 3ms
memory: 3744kb
input:
10000 17583 14227 1 0 19147 6193 1 0 1368 15079 1 0 15885 14424 1 1 6717 4239 1 1 6529 5474 0 1 1310 4413 1 0 9583 8853 1 0 11244 5733 0 1 19893 18202 1 0 14250 5327 1 1 15260 10620 0 1 6044 8310 1 0 16395 17209 0 1 12200 5675 1 0 5369 14449 1 0 2802 11248 1 0 2744 9287 1 1 17081 16422 1 0 3272 1465...
output:
4958 3567 1786 8316 5451 9863 7714 5946 5462 5504 8168 4773 8829 3247 3152 2865 4315 7106 3457 5434 3196 1444 8412 7837 3303 3963 7874 5009 2802 3385 8686 411 32 7495 8565 7444 6673 3025 7128 742 94 3635 4302 5361 5222 2859 4258 8321 5165 4394 4862 2268 5293 483 8848 5097 2818 4646 5884 9497 5279 73...
result:
ok 2 lines
Test #4:
score: 0
Accepted
time: 4ms
memory: 3724kb
input:
15000 7760 24040 1 1 26505 6557 1 1 20595 6476 0 1 28601 23722 1 0 21058 3237 1 1 22309 21307 1 1 2702 23984 1 1 29376 18154 0 1 20660 4833 0 1 8503 849 1 1 21208 21500 1 0 15191 20018 1 1 250 16155 0 1 2479 7183 1 1 10300 18513 1 1 26552 16558 0 1 22028 28660 1 0 26704 5068 1 0 8183 10414 1 1 55 21...
output:
7403 13371 5310 13451 1094 7985 10505 1618 4961 10539 8863 11663 12375 1011 8764 4435 10200 10977 5409 6908 20 11514 5223 2581 754 11476 8716 6720 13977 2058 7001 1275 7263 4635 14137 10437 12557 5379 13097 2644 13423 2105 1592 1336 13086 4272 9330 8526 13253 6764 10257 6073 12371 2621 6423 8812 629...
result:
ok 2 lines
Test #5:
score: 0
Accepted
time: 3ms
memory: 3712kb
input:
20000 16999 36749 1 1 18673 14485 0 1 39539 18368 0 1 3708 5429 1 0 35891 31738 1 0 36321 15957 1 0 36586 23395 1 1 21327 37960 1 0 39965 19082 0 1 29824 17903 1 0 2350 38939 1 0 33381 8264 1 1 10127 8959 1 1 455 30798 1 0 17607 2096 1 1 19012 15011 0 1 5121 37778 1 0 11044 11587 1 1 5755 25992 1 0 ...
output:
10088 14724 7274 13305 15475 2871 13220 15611 9116 2670 11795 9225 4043 423 12035 13492 17351 19191 3566 13186 15945 10261 3518 13330 4942 14299 4111 19901 7653 19450 19977 19602 16100 4396 3953 1195 16749 6876 18703 10981 10245 7463 17264 4267 1179 18094 3790 19008 6150 11761 14751 2678 15046 17796...
result:
ok 2 lines
Test #6:
score: 0
Accepted
time: 7ms
memory: 3856kb
input:
25000 20165 37211 1 1 439 11891 1 1 31424 40360 0 1 17985 24657 0 1 13696 8763 0 1 26235 26495 1 1 36483 3869 1 0 24495 20119 1 0 43441 42159 1 1 22213 33813 0 1 48355 45009 1 1 5769 30413 1 0 39930 1952 0 1 31542 490 1 0 2910 15302 1 0 17467 46004 1 1 43994 49907 1 1 42689 39671 1 1 25915 43643 0 1...
output:
12490 13729 3366 16558 15037 5331 21224 4543 14740 12692 489 19969 1360 5515 16122 1477 5809 6006 2244 2738 8346 8506 10852 4727 20317 7666 23106 1802 15236 22640 19034 13081 23231 21428 22891 17532 15485 21510 2296 7203 2645 4665 23967 3914 21332 6911 3747 7483 195 20932 1897 24911 15064 5453 4447 ...
result:
ok 2 lines
Test #7:
score: 0
Accepted
time: 8ms
memory: 3748kb
input:
30000 38430 51539 1 1 6571 44181 1 1 50815 15888 1 0 13803 8818 0 1 45933 5541 0 1 43075 24764 1 1 47336 47693 1 0 8526 39292 1 0 23759 36914 1 0 57463 19706 1 1 50655 2014 1 1 15199 42837 0 1 42646 51891 1 0 2075 16490 1 1 695 34441 1 0 47821 54169 0 1 31979 12082 1 0 13253 38990 1 1 5329 23855 1 1...
output:
15036 7329 14819 13410 9113 7606 26404 11418 6407 18608 15113 13781 19536 484 16036 26334 19435 20885 11001 9377 10525 22629 8789 3276 14298 10543 9520 18345 7246 2519 14700 12865 19732 29240 18036 16554 9693 24923 19635 3119 26774 8420 24818 24920 10741 26188 24973 26917 19648 12356 7976 571 27806 ...
result:
ok 2 lines
Test #8:
score: 0
Accepted
time: 4ms
memory: 4036kb
input:
35000 46347 7753 1 1 22287 2312 1 1 46337 20818 1 1 51834 67776 1 1 6992 59689 0 1 42871 19481 1 0 59948 51596 1 0 12279 67679 1 1 1606 11161 1 1 17770 30527 1 1 64684 67186 0 1 3282 24498 1 0 52578 43274 1 0 42455 46877 0 1 20491 53667 1 1 10174 21159 1 1 32358 17175 1 0 25679 34742 1 0 8594 53191 ...
output:
17383 3096 21492 18699 22757 4843 11223 14077 31197 11176 12019 24314 4578 14268 11675 6426 33184 2852 17603 30099 2605 15150 30275 8051 3138 403 33752 18464 14977 1736 6290 22264 31938 11409 26468 12045 8692 14202 9819 9218 20272 18666 33660 8671 32590 15069 23018 10702 3822 16784 8235 31082 12205 ...
result:
ok 2 lines
Test #9:
score: 0
Accepted
time: 10ms
memory: 3732kb
input:
40000 56842 42464 0 1 41941 69881 1 0 22881 57896 1 0 31441 9630 0 1 1749 58723 1 1 76040 69440 1 0 68072 57769 1 1 21004 17137 0 1 57354 59575 1 1 17231 37162 0 1 61663 79426 1 0 13269 25781 1 1 70160 19 1 1 53571 61593 0 1 72173 64781 1 0 70676 73505 1 1 24453 12537 1 1 57701 54533 0 1 75622 44230...
output:
19831 33070 27054 15448 8232 20041 27869 31729 9960 5601 35018 25761 30010 39215 9088 17374 14337 11502 19464 34936 16057 31216 31053 10636 11899 22089 18192 11964 14925 6331 24534 13880 32217 8220 13671 27099 29499 768 31421 30156 28483 35924 24546 10335 38303 9101 30324 28752 7768 5298 23135 9516 ...
result:
ok 2 lines
Test #10:
score: 0
Accepted
time: 12ms
memory: 3732kb
input:
45000 72044 50157 1 0 17667 64694 0 1 78481 69726 1 1 58851 34899 0 1 47722 53432 1 0 23645 37957 1 0 63348 39035 1 1 69845 79855 1 1 12538 62678 1 0 29530 84498 1 0 58930 8883 1 1 16624 89314 1 1 54886 58803 0 1 57721 72826 1 0 2323 80330 1 0 55915 38787 1 1 39559 73450 0 1 77570 13529 1 1 16341 80...
output:
22316 13863 27489 37706 26574 25509 8479 18118 19718 21539 35555 34366 39841 41330 32856 17144 32876 22620 42771 7028 11749 34636 36683 29204 5160 24940 28731 2526 13383 38922 4366 20890 15849 11161 20820 34282 38576 9581 42861 15606 6172 17184 37549 32837 12981 14404 19900 11380 14550 41121 11458 1...
result:
ok 2 lines
Test #11:
score: 0
Accepted
time: 13ms
memory: 3888kb
input:
50000 51070 29922 1 1 29661 12166 0 1 67378 19535 1 0 12692 63803 1 1 83710 51853 0 1 34507 80101 1 1 85882 49332 1 1 95856 33788 0 1 10149 36025 1 1 21570 48612 1 1 17698 67515 1 0 84995 93823 0 1 47068 91657 1 0 20569 52315 1 0 4662 88662 0 1 28073 9940 0 1 88354 89346 1 0 16622 7432 0 1 57606 634...
output:
25084 36837 26083 8134 21527 15975 9454 24504 25429 2738 43730 4972 9761 42736 7046 38183 8843 40418 6857 17668 47080 25234 32480 45237 8495 20243 11168 16952 14837 9678 36039 2893 44333 14841 17244 13584 10315 15747 23260 46214 15489 11227 29766 39322 29287 43589 35662 44654 19363 3367 2261 7827 39...
result:
ok 2 lines
Test #12:
score: 0
Accepted
time: 11ms
memory: 3756kb
input:
55000 95032 78037 1 1 17541 27305 1 0 2044 29415 0 1 31589 102590 1 1 38292 97401 1 0 68956 89554 1 1 71567 48203 0 1 42805 51129 0 1 108243 44801 1 0 66910 75124 1 1 64050 31729 1 1 31545 75419 1 0 69950 15047 1 0 90130 20814 1 0 898 35310 1 0 2444 80038 1 1 52689 47970 1 0 90797 85108 1 0 43365 85...
output:
27394 1410 49787 9296 54446 13728 40080 32438 11869 11259 21428 24813 14812 16936 40986 24160 16583 52331 11198 54178 47569 54581 10184 46095 41614 22667 20993 26508 52739 20994 52863 40062 41215 53513 27678 37776 390 53866 12882 50974 12911 53977 6295 23884 47447 31620 30131 7105 11375 14348 24526 ...
result:
ok 2 lines
Test #13:
score: 0
Accepted
time: 16ms
memory: 3788kb
input:
60000 92985 8024 1 0 56019 40230 0 1 7233 81293 0 1 66637 74979 0 1 83844 30729 1 1 115203 98985 1 1 3465 26066 1 0 55971 74953 1 1 23838 105966 1 1 57147 110248 1 1 63991 42046 1 1 110362 92563 1 0 107476 99909 1 1 7875 54145 1 0 50586 12473 1 1 5680 44862 1 1 45321 42928 0 1 80467 90075 1 1 116974...
output:
29920 33701 48458 40004 35320 19094 20154 44895 44007 4187 24683 54889 5471 23052 53599 57566 21026 42303 51603 33143 38031 498 3266 49230 57776 4430 5411 12270 15189 25772 44873 9983 5075 39330 28022 30596 33642 39996 13730 12305 10928 55653 38094 15671 50921 33389 16835 51362 8958 29144 16694 3385...
result:
ok 2 lines
Test #14:
score: 0
Accepted
time: 17ms
memory: 3740kb
input:
65000 117389 32527 1 0 116003 107645 1 1 28274 60500 1 0 48836 48461 0 1 108891 83831 1 1 119813 66192 0 1 85494 11265 1 0 104913 12283 0 1 102726 9358 0 1 94369 123328 1 1 81243 122180 1 0 111870 96326 0 1 83838 106881 0 1 71704 97506 1 0 82169 6519 1 0 30186 21104 0 1 50771 24523 0 1 70906 107539 ...
output:
32442 17173 27171 57937 50143 55161 30995 3286 42391 32129 23619 23087 9151 36094 10877 10949 51223 31630 60905 29120 39058 41913 9668 12653 58033 2116 10434 41399 40703 27676 49811 48087 15285 57350 30474 38290 30725 34192 15702 20462 17955 21052 49048 19110 27890 26865 30098 60387 24312 8562 50590...
result:
ok 2 lines
Test #15:
score: 0
Accepted
time: 19ms
memory: 4192kb
input:
70000 4431 37849 1 1 52708 35054 1 1 120184 35275 1 0 81688 77536 1 0 48889 102948 1 1 53112 54245 1 0 18257 38872 1 0 99411 120491 0 1 90950 24221 1 0 39521 25298 1 0 41876 55882 0 1 10338 85252 1 0 54651 120133 1 1 10830 10435 1 0 61886 137158 1 1 131445 65934 1 1 119230 26726 1 0 89306 6697 0 1 6...
output:
35121 5083 45188 49054 39460 33727 27812 23758 14727 921 19679 39007 67058 38823 7669 56890 27873 32442 3372 43265 44688 50341 27766 5009 1584 1786 36349 2122 11212 38635 68006 7582 10683 13422 22729 57225 62620 22806 45642 18305 61167 35784 13817 45070 24839 43985 31013 19483 891 40151 19953 45363 ...
result:
ok 2 lines
Test #16:
score: 0
Accepted
time: 20ms
memory: 4148kb
input:
75000 122820 76761 1 1 14326 140857 0 1 35416 94628 0 1 142335 128647 0 1 122515 106244 1 0 131392 62682 1 1 65960 74630 0 1 119201 32210 1 1 71590 139727 1 0 87235 28950 0 1 142127 1973 1 0 136512 145038 1 1 118864 93027 1 0 101722 129842 1 1 107524 112587 0 1 64408 1766 1 1 44979 77430 1 0 9156 89...
output:
37536 31529 69383 25404 15498 34658 9194 12411 55528 65170 9185 45311 3659 20881 12281 60364 42196 10992 30579 72000 11536 46368 52971 5632 4874 3412 54671 66795 13985 24982 61245 60083 1749 37718 54806 21373 32859 16046 29922 59530 12727 36520 24902 40298 1610 50657 33242 39941 49065 25681 270 2629...
result:
ok 2 lines
Test #17:
score: 0
Accepted
time: 18ms
memory: 4188kb
input:
80000 33760 70669 1 1 11079 36534 1 0 45246 151264 0 1 106128 67003 1 1 11923 58855 0 1 25017 116943 0 1 154594 89181 1 1 58139 148562 1 1 116481 43491 0 1 43326 127879 1 1 122520 82390 1 0 22146 156776 0 1 153785 96993 0 1 136161 115487 0 1 68131 87695 1 1 88094 84725 1 1 151165 99071 1 0 75790 263...
output:
39830 78358 13450 12104 49578 64344 10984 17261 55783 49473 57279 34749 31433 71719 28730 2593 27196 44461 26146 34145 77202 25156 41420 50060 46944 10301 45865 13677 24558 59355 73910 52499 2970 49495 8441 35516 75147 54765 22353 23393 31351 31904 77575 9150 76579 11648 55650 47162 26721 26203 2080...
result:
ok 2 lines
Test #18:
score: 0
Accepted
time: 23ms
memory: 4276kb
input:
85000 100967 104972 1 0 126417 14169 0 1 74963 36237 0 1 2582 119729 0 1 111065 93766 1 1 144299 74557 0 1 128016 79964 1 0 118566 4480 1 0 36039 109611 1 1 158276 17261 1 1 69678 57648 0 1 120011 164488 1 0 159237 17860 1 1 66246 41113 1 0 26141 121786 0 1 85550 16475 1 1 53645 60534 1 1 49502 1562...
output:
42353 5934 18491 51405 60566 2241 73449 9437 56723 48607 26419 76279 34050 27275 20305 78989 58217 56906 81358 50895 7223 24487 45259 1052 76792 19572 41971 71501 61638 58873 69227 62518 44686 22703 1714 81631 55941 43837 71849 25395 14745 2702 84628 8415 42302 1038 30943 84398 36577 37253 38660 422...
result:
ok 2 lines
Test #19:
score: 0
Accepted
time: 20ms
memory: 4080kb
input:
90000 144217 165763 0 1 18727 55088 0 1 102019 92476 0 1 125825 13686 1 0 46214 49080 1 1 179675 158857 1 0 132917 165116 1 0 31730 25823 1 0 176162 48524 1 1 136774 83258 1 1 13941 13736 1 1 109908 110563 0 1 68213 52627 0 1 134429 138881 0 1 25326 124803 1 1 87649 14587 1 0 53724 22875 1 1 157128 ...
output:
45230 65503 51875 46876 37299 82925 56784 36059 9037 55859 45397 88484 53257 74243 87089 78013 23961 36477 56641 16499 60179 33012 34161 24348 79394 59495 18645 48194 85521 80095 85727 4225 76752 42963 83847 17752 36179 51529 60373 36998 30967 39244 35452 15639 40421 26902 31545 52306 9145 60210 127...
result:
ok 2 lines
Test #20:
score: 0
Accepted
time: 22ms
memory: 4188kb
input:
95000 11607 79327 1 0 30221 91158 0 1 77079 17775 0 1 173101 163552 1 0 49169 97111 1 0 155768 169507 0 1 183382 139495 1 1 122421 172621 1 0 47601 172826 1 1 140574 102531 1 0 25300 115252 0 1 4137 67867 1 0 155741 92665 1 1 180781 24547 1 0 82900 111237 0 1 50859 35039 1 1 149170 158968 1 1 108037...
output:
47724 91300 2788 31395 15987 91341 93686 29338 48464 78163 74278 69855 6267 63292 26997 60909 55247 77801 81070 27894 26998 44578 30108 69069 28047 13956 32987 8854 40137 94798 87787 68969 65132 48300 80611 33284 36418 4073 21904 43351 78006 85811 41036 26439 63704 7771 24298 14075 91466 9059 79087 ...
result:
ok 2 lines
Test #21:
score: 0
Accepted
time: 27ms
memory: 4272kb
input:
100000 56449 21738 1 0 74917 44834 1 1 36187 96576 1 0 37204 153065 1 0 3444 103391 1 0 197620 183153 0 1 51445 30706 0 1 27229 37159 1 1 66052 16691 1 1 108838 29935 1 1 44984 3648 0 1 178808 73600 1 0 108453 153369 1 1 5298 133533 0 1 49412 144938 1 0 109435 114286 0 1 151675 10233 1 0 199095 1795...
output:
50120 31910 65756 32570 3586 11364 62797 67781 21013 12780 51001 66887 79457 16400 7857 66712 91128 25918 29373 80216 31620 63153 81350 83909 13041 41478 96648 36134 93406 69249 25041 51537 96202 54782 98139 1540 23658 69158 99022 71728 66955 55970 53217 35502 91546 97114 36146 87108 51641 19301 557...
result:
ok 2 lines
Test #22:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
10 5 1 1 0 6 19 1 1 14 3 1 1 20 10 1 0 9 15 1 1 4 7 1 0 2 8 1 0 17 13 1 1 12 18 1 0 16 11 1 0
output:
8 7 6 1 2 5 9 10 4 2 3 8
result:
ok 2 lines
Test #23:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
100 140 194 1 1 120 2 1 0 18 167 1 1 150 187 0 1 84 40 0 1 118 45 0 1 135 128 1 0 160 71 1 0 106 161 1 0 81 20 1 0 142 192 1 1 182 116 1 1 13 93 1 1 172 193 0 1 141 95 0 1 190 21 0 1 55 131 0 1 198 199 0 1 166 175 1 0 89 117 1 1 170 87 1 1 43 59 1 0 36 200 1 0 103 189 1 0 65 181 1 0 62 151 0 1 86 5 ...
output:
45 80 13 87 3 93 47 58 44 95 23 22 69 63 88 48 94 39 71 25 86 61 66 10 42 100 20 52 89 24 9 50 57 35 2 7 81 51 1 11 36 29 8 38 31 19 55 79 27 30 62 74 85 34 16 33 92 90 67 46 5 59 6 28 97 83 65 98 55 37 54 49 21 15 68 96 43 32 53 12 82 77 45 17 73 75 40 26 41 72 60 76 84 78 99 70 4 14 56 91 64 18
result:
ok 2 lines
Test #24:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
1000 1773 1913 1 0 1757 1144 1 0 1163 1890 1 0 251 321 1 0 897 1497 1 1 403 1922 1 1 746 837 1 1 1336 1570 1 0 581 626 0 1 1744 18 0 1 1578 437 0 1 1251 1394 0 1 513 985 1 0 1294 143 1 0 1639 1504 1 1 94 1081 1 0 1826 361 1 1 1381 258 1 0 1390 827 1 0 1488 125 1 0 273 299 0 1 1280 1152 1 0 896 1494 ...
output:
537 233 190 559 135 585 541 956 970 1000 113 937 762 599 470 447 99 189 988 175 659 933 308 82 718 338 16 131 152 665 90 527 83 667 363 620 701 919 183 390 371 981 343 990 490 255 512 192 985 543 789 739 904 377 768 941 67 319 102 643 386 626 647 644 814 753 409 795 161 955 642 327 959 907 340 925 3...
result:
ok 2 lines
Test #25:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
2 1 3 1 0 2 4 1 0
output:
2 1 2 0
result:
ok 2 lines
Extra Test:
score: 0
Extra Test Passed