Code Submission Evaluation System Login

BOI 2016, day 1

Start:2016-05-12 09:00:00
End:2016-05-12 14:00:00
 

Tasks | Scoreboard | Statistics


CSES - BOI 2016, day 1 - Results
History
2016-05-12 13:48:320
2016-05-12 13:48:070
2016-05-12 13:44:310
2016-05-12 13:40:340
2016-05-12 13:32:100
2016-05-12 13:27:570
2016-05-12 13:27:040
2016-05-12 13:25:240
2016-05-12 13:23:580
Task:Park
Sender:ReaLNero
Submission time:2016-05-12 13:48:32
Language:C++
Status:READY
Score:0

Feedback

groupverdictscore
#1WRONG ANSWER0
#2WRONG ANSWER0
#3WRONG ANSWER0

Test results

testverdicttime (s)group
#1WRONG ANSWER0.05 / 2.501details
#2WRONG ANSWER0.05 / 2.501details
#3WRONG ANSWER0.05 / 2.501details
#4WRONG ANSWER0.04 / 2.501details
#5WRONG ANSWER0.06 / 2.501details
#6WRONG ANSWER0.05 / 2.501details
#7WRONG ANSWER0.06 / 2.501details
#8WRONG ANSWER0.05 / 2.501details
#9WRONG ANSWER0.05 / 2.501details
#10WRONG ANSWER0.05 / 2.501details
#11WRONG ANSWER0.05 / 2.502details
#12WRONG ANSWER0.05 / 2.502details
#13WRONG ANSWER0.06 / 2.502details
#14WRONG ANSWER0.05 / 2.502details
#15WRONG ANSWER0.06 / 2.502details
#16WRONG ANSWER0.06 / 2.502details
#17WRONG ANSWER0.05 / 2.502details
#18WRONG ANSWER0.06 / 2.503details
#19WRONG ANSWER0.05 / 2.503details
#20WRONG ANSWER0.06 / 2.503details
#21WRONG ANSWER0.05 / 2.503details
#22WRONG ANSWER0.05 / 2.503details
#23WRONG ANSWER0.05 / 2.503details
#24WRONG ANSWER0.09 / 2.503details

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:29:7: warning: unused variable 'oy' [-Wunused-variable]
   int oy = 0, ox = 0;
       ^
input/code.cpp:29:15: warning: unused variable 'ox' [-Wunused-variable]
   int oy = 0, ox = 0;
               ^

Code

#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

int main() {
	ios::sync_with_stdio(false);

	int t, v;
	cin >> t >> v;
	int x, y;
	cin >> x >> y;

	if(t != 1){
		cout << 1;
		return 0;
	}
	int xt[t], yt[t], rt[t];
	for(int i = 0; i < t; i++){
		cin >> xt[i] >> yt[i] >> rt[i];
	}

	int rv[v], ev[v];

	for(int i = 0; i < v; i++){
		cin >> rv[i] >> ev[i];

		bool acc[4] = {0, 0, 0, 0};
		acc[ev[i] - 1] = true;
		int oy = 0, ox = 0;
		for(int j = 0; j < 10; j++){
			if(yt[0] - rt[0] > rv[i]){
				if(acc[2] or acc[3]){
					acc[2] = true;
					acc[3] = true;
				}
			}
			if(y - (yt[0] + rt[0]) > rv[i]){
				if(acc[0] or acc[1]){
					acc[0] = true;
					acc[1] = true;
				}
			}
			if(xt[0] - rt[0] > rv[i]){
				if(acc[0] or acc[3]){
					acc[0] = true;
					acc[3] = true;
				}
			}
			if(x - (xt[0] + rt[0]) > rv[i]){
				if(acc[1] or acc[2]){
					acc[1] = true;
					acc[2] = true;
				}
			}
		}
		for(int j = 0; j < 4; j++){
			if(acc[j]){
				cout << j + 1;
			}
		}
		cout << '\n';
	}
	return 0;
}

Test details

Test 1

Group: 1

Verdict: WRONG ANSWER

input
2000 1
979513360 951064428
919546609 316314580 2377936
339446741 628130423 4125204
121572058 270524668 5636432
73558428 535816012 14963904
563873691 362941557 2218871
774348325 289959108 2918556
69609236 709212695 124629
83047513 130513344 8130184
768502487 34849199 6213690
107652010 272526526 4683935
243944941 673480815 1281618
673407333 505876824 3580184
177711847 307184918 2960957
226041149 568326799 10968781
684467334 269087870 601985
703827917 858575682 10698325
582511307 610717785 5593012
563861975 729190218 7762014
...
view   save

correct output
3
view   save

user output
1
view   save

Test 2

Group: 1

Verdict: WRONG ANSWER

input
2000 1
991199014 920833466
230700794 888996817 6050635
481388637 266963369 8990139
388128678 193075342 6392873
99938966 425961320 5719229
769433083 171015002 5864370
752442255 303163187 7547368
100416081 879266593 372069
738264650 881103124 8384638
475635838 471124315 1618961
640495696 909591073 1242156
528345780 698752453 9045657
582856617 237778992 5723483
689286625 718616865 4652683
25617648 808577900 3983564
92979990 171775606 6728620
248194289 129473413 804315
431652613 518551367 7269798
142374481 785160089 1141497
...
view   save

correct output
123
view   save

user output
1
view   save

Test 3

Group: 1

Verdict: WRONG ANSWER

input
2000 1
912908727 909993663
497818433 252740213 1302648
19445396 162424624 2590054
851436472 463371747 1783777
448780678 624458491 4971208
166634776 142202304 398813
423792883 488863734 731781
102458454 906228368 1166147
253414931 17016047 3898905
507413095 373186108 6152395
387522550 183015008 4130841
430872299 433929467 896877
220231072 133836268 3324476
130026528 222624273 7922643
289614585 281558714 2042736
691282167 474617545 5806321
362050932 579209266 1286344
275771716 134038744 5027632
787635385 672751250 3119740
...
view   save

correct output
13
view   save

user output
1
view   save

Test 4

Group: 1

Verdict: WRONG ANSWER

input
2000 1
999389891 924955261
154253387 891000940 6076382
59202899 565427474 8676367
123280124 461618875 16605
787454555 503801713 5254662
468851883 735435664 4661395
710226279 429426911 6864081
251393860 593687159 2698853
934586174 518515311 2374762
857529711 836006427 929600
130964383 912531882 3674473
648416744 718023694 7970510
892898023 676036124 7390097
847983394 467059745 2797555
873781826 479180515 7721206
92341676 904751620 1961408
386335123 214324367 4084793
409512416 854483023 7688307
448357804 295841032 8194210
...
view   save

correct output
124
view   save

user output
1
view   save

Test 5

Group: 1

Verdict: WRONG ANSWER

input
2000 1
954679508 995423791
114486161 258621130 1651405
236582339 590299172 7669288
408723654 553042386 13639
580292495 549700824 3852785
643793168 469415771 1129359
161923807 361893558 6802249
499418497 641202983 3672110
826915703 370386909 2008063
654325104 457732987 1404399
174188095 368399520 504762
701161214 240201745 2343253
499062445 670207405 4803492
7329062 856331417 3173353
478157614 703037970 8047584
201322343 143380934 76688
456472166 244167417 1852263
501178526 837811625 4917348
511204676 97316682 6358177
...
view   save

correct output
1234
view   save

user output
1
view   save

Test 6

Group: 1

Verdict: WRONG ANSWER

input
2000 1
937290370 990023490
548183238 668272337 6940399
17490037 355711568 6267836
464677420 473577708 1705970
595972495 677029563 7639823
418243459 19501183 7431619
622212472 77165427 5123526
666066911 122414595 4019722
826879441 479320386 3203626
899225105 193190366 1965623
353005250 215890616 4518551
650925925 236428909 1522183
309450122 447036897 4146178
819737837 341580513 3543284
752619249 183734194 5334332
633707729 431098244 4824023
913885852 919754009 7136691
816972072 182275522 631923
615672339 585691184 4070926
...
view   save

correct output
234
view   save

user output
1
view   save

Test 7

Group: 1

Verdict: WRONG ANSWER

input
2000 1
1000000000 1000000000
532933 500000000 181305
1121313 500000000 132799
1349788 500000000 95636
999886631 500000000 52825
999483753 500000000 95529
997397176 500000000 36202
1448097 500000000 2465
995265633 500000000 298539
1640984 500000000 190178
2335460 500000000 503802
3159869 500000000 320013
993309709 500000000 28661
991681918 500000000 56874
990098180 500000000 31714
3518810 500000000 38316
3911653 500000000 353861
988628469 500000000 15725
4386581 500000000 120389
...
view   save

correct output
12
view   save

user output
1
view   save

Test 8

Group: 1

Verdict: WRONG ANSWER

input
2000 1
1000000000 1000000000
999214206 500000000 32714
999000173 500000000 123669
996825328 500000000 13444
538185 500000000 234421
914997 500000000 26905
943398 500000000 1426
1124492 500000000 179318
994843356 500000000 99306
992842721 500000000 41697
990963876 500000000 17872
1606358 500000000 302056
2280643 500000000 371715
2777051 500000000 124081
3047403 500000000 145607
989025485 500000000 103361
3405177 500000000 211271
987176403 500000000 43051
3790840 500000000 173406
...
view   save

correct output
1234
view   save

user output
1
view   save

Test 9

Group: 1

Verdict: WRONG ANSWER

input
8 1
1000000000 1000000000
200000000 384529926 2459575
400000000 269059852 2459575
400000000 499999960 2459575
600000000 384529886 2459575
600000000 615469994 2459575
800000000 499999920 2459575
400000000 38119745 2459575
597768045 995105726 2459576
113010479 3
view   save

correct output
134
view   save

user output
1
view   save

Test 10

Group: 1

Verdict: WRONG ANSWER

input
8 1
1000000000 1000000000
200000000 384529926 2192968
400000000 269059852 2192968
400000000 499999960 2192968
600000000 384529886 2192968
600000000 615469994 2192968
800000000 499999920 2192968
400000000 38119745 2192968
597768045 995105726 2192969
187628178 3
view   save

correct output
34
view   save

user output
1
view   save

Test 11

Group: 2

Verdict: WRONG ANSWER

input
200 100000
993985849 949873837
619688070 593376074 26401004
51123815 780993228 13183641
266929658 843234344 18993732
305130556 613209547 26832930
603006022 911854543 23414338
510189515 143392903 27319204
799526085 761254537 3186925
58322207 68078208 14108163
820847272 77008187 6956501
476941012 746310701 5498260
213292999 741488249 115637
82310472 222616484 15810756
279603111 81837960 11333944
61395885 358670798 8958669
95112446 30574201 19539665
817443765 747747170 6448546
224990599 891987755 10396965
589081698 846071682 11796521
...
view   save

correct output
124
1234
1234
24
1
1234
1234
1234
1234
1234
124
124
1
124
124
1234
124
1234
1234
124
...
view   save

user output
1
view   save

Test 12

Group: 2

Verdict: WRONG ANSWER

input
200 100000
982434756 609937936
695001046 491087928 16349486
790013019 427021425 18691445
123384937 443241449 12436568
828033036 292196425 7722818
680206322 334842777 4272635
943210213 455833682 20999017
600367522 62394021 21708920
790612409 364721583 21767595
453227404 375191470 21039256
275870691 252447960 16182736
382577603 70193018 10326639
343838862 37525519 25461127
915417463 515903637 25738005
175025653 547129818 5521699
366688178 208672539 17947785
613663839 353207133 17177430
657589498 156938898 1986500
714359870 365814339 25883524
...
view   save

correct output
2
1
1234
1234
1
1234
2
123
1234
4
23
4
3
23
123
4
123
1234
123
123
...
view   save

user output
1
view   save

Test 13

Group: 2

Verdict: WRONG ANSWER

input
200 100000
252174733 978347740
84976972 739235003 3453165
183216957 798073359 4958937
54932300 631165519 2427103
158578148 944410116 13608333
166910419 141026902 4272746
55555122 945995429 5678716
16826518 527510226 3090633
230773675 480999567 13184840
88954269 544155313 15536084
81116670 844256184 3701217
202738103 201794008 5069036
211778526 358135965 9469603
137541870 501452312 5085786
31066658 122221216 10460227
154002801 809651461 10733022
223727669 234593849 13979800
136987109 847218411 12518400
24936776 636904260 7497043
...
view   save

correct output
1234
1234
1234
4
1234
12
3
4
4
4
1
1234
4
34
34
3
1234
1234
1234
34
...
view   save

user output
1
view   save

Test 14

Group: 2

Verdict: WRONG ANSWER

input
200 100000
962079396 954653252
377813916 356435724 6114019
573684958 814097817 2854710
18344298 745997487 1106881
126453190 237889748 21482334
489673192 707388071 12410042
539668438 296542127 17564047
918135082 275042291 18748651
610355410 843191885 12510321
575254313 905081856 5999563
157233326 40769545 19302290
852855182 411766790 11097813
47681469 297384330 13296490
266760131 551634123 9177876
729854154 481438117 15808002
351886108 292772333 1131819
323184140 451489532 9000144
321389931 782309276 9567017
439345339 842354167 12960382
...
view   save

correct output
1234
3
1234
123
1234
1234
4
4
2
2
1
1234
123
1234
4
123
2
3
1234
12
...
view   save

user output
1
view   save

Test 15

Group: 2

Verdict: WRONG ANSWER

input
200 100000
983619508 947923666
48721169 702938953 450395
711039974 141619954 13074117
533030306 254919890 19245304
757398392 909888955 4208042
447947344 19435884 3591301
691600762 400620970 3163539
512291114 335247613 10442564
453282088 230579076 14498779
427115159 137392623 13308683
370962740 652028874 14111977
407086237 591207837 19715030
752186163 662303127 3341042
119721897 7067732 2622906
419887357 407180646 7105118
387688839 82377791 9917340
341219093 153390183 3184069
229752830 228254036 3376392
41123892 676616447 5662210
...
view   save

correct output
13
13
1234
2
4
1234
4
1234
123
1234
4
1234
123
4
13
13
1234
13
13
123
...
view   save

user output
1
view   save

Test 16

Group: 2

Verdict: WRONG ANSWER

input
200 100000
1000000000 1000000000
997539459 500000000 1239023
991535567 500000000 1287423
137985 500000000 15999
5031046 500000000 3080206
972250674 500000000 1600310
956838771 500000000 136001
939417558 500000000 4287712
923267925 500000000 521451
911044510 500000000 1173434
897225201 500000000 2430023
885300386 500000000 21710
8498988 500000000 381100
875985017 500000000 317797
9570200 500000000 663602
10298954 500000000 21050
11190193 500000000 822019
12363732 500000000 289334
866147400 500000000 1090478
...
view   save

correct output
12
34
1234
1234
1234
1234
1234
1234
1234
34
12
12
34
34
1234
1234
1234
12
12
34
...
view   save

user output
1
view   save

Test 17

Group: 2

Verdict: WRONG ANSWER

input
8 100000
1000000000 1000000000
200000000 384529926 2147940
400000000 269059852 2147940
400000000 499999960 2147940
600000000 384529886 2147940
600000000 615469994 2147940
800000000 499999920 2147940
400000000 38119745 2147940
597768045 995105726 2147941
187673208 3
187673215 2
188165562 4
113322111 3
188250287 3
112807559 3
188238399 1
187673210 3
112826530 2
113322107 2
...
view   save

correct output
3
2
4
1234
3
1234
1
3
1234
1234
4
34
34
1
1
1
1
1
1234
34
...
view   save

user output
1
view   save

Test 18

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
994458630 910261182
228672329 565536439 6062123
865578660 350406456 1902914
658300836 250167973 4318414
955207001 476549912 5763328
170228331 134596391 6483334
29243887 252588983 6577226
309309918 556833260 2104973
590546948 570511995 2226222
924565884 506893239 11072009
88870236 668836903 288109
160492867 276864298 13858178
295326154 48845229 2970235
82354971 49016337 4556514
513255914 666270609 12801745
676279446 191523420 3253587
131055258 653459651 4914392
630375320 180847353 7680785
27181459 23119377 5373760
...
view   save

correct output
1234
12
1234
12
1234
1
1234
34
1234
1234
1234
2
1234
1234
1234
2
34
1234
12
34
...
view   save

user output
1
view   save

Test 19

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
515185242 944723489
362533601 102695020 1535335
367129302 105681887 1044128
78363007 423585007 8499033
276474231 789463671 1733221
395040335 368669721 6709375
139125943 806393784 7463220
30411833 187347143 7890152
330793738 903291323 5899878
197048313 383149768 1492294
108457775 870243179 8177000
211037133 896763166 1959822
208984753 7850399 2847236
445928156 376904584 6894518
440815107 565278323 8030494
394003647 229549694 3465760
90538041 893730431 6083940
120414481 935191466 4865405
398316962 129322004 4046336
...
view   save

correct output
1234
2
1
3
1234
1234
3
4
124
12
124
12
1234
1234
3
124
12
1234
4
3
...
view   save

user output
1
view   save

Test 20

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
943877407 973718583
554730247 145643422 5156712
450379716 747719842 5552798
359822323 539661121 4496376
897836474 767509438 7815562
902145081 15710430 1605590
676814185 282868142 1638887
45261123 674442259 5407682
665978660 514566233 8239033
706828402 581675757 1929405
50494353 345812051 2291761
114947645 641477881 6641797
13417106 796666412 5960773
65447565 663247556 1095591
428546700 170302405 11064279
138274285 382873161 8701205
400075519 615107103 2358007
292521721 337528750 1025111
449100695 926544982 3438890
...
view   save

correct output
1234
1
4
23
1234
1234
1234
1234
3
1234
1
1234
1
4
1
1234
2
4
1234
1234
...
view   save

user output
1
view   save

Test 21

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
955646071 386812958
78813697 210798005 2565719
428648058 66546609 3699882
44149147 6888916 1802358
708859122 215546119 182099
56947236 280119402 3864361
832436027 186784477 3436661
597133223 156418900 3057748
361203801 347784444 2375502
665469839 366824098 3106193
876472307 206310364 2016744
818291122 21173051 2386315
171222507 23043053 1238422
548691186 79213527 6887486
817174381 204938222 3075850
16131595 202140075 4198240
735490785 277381403 1184562
245655047 10175230 1044337
581981555 161961985 782264
...
view   save

correct output
1234
4
1234
4
1234
3
1234
4
3
3
4
2
4
2
3
4
1234
2
1
1234
...
view   save

user output
1
view   save

Test 22

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
919439951 944456830
893635539 257036972 4101254
450766196 632933839 3416792
57291728 805137182 2282993
237703490 632061435 469307
108775088 484514542 5137484
810348680 916343775 533358
511403420 739215403 4197430
427605367 189597585 3630793
818425762 749267319 3948418
875519102 728581159 5378020
765801672 508338519 1062335
668328012 414249094 2703149
620363326 418932045 4323668
765930138 550886733 3015573
259767384 659661855 842483
88994039 822328829 191754
357857168 491146795 2389074
856681163 620212137 1432017
...
view   save

correct output
1234
24
1234
1234
1234
1234
1234
1
234
1234
1234
1234
1234
1
1
1
234
3
234
2
...
view   save

user output
1
view   save

Test 23

Group: 3

Verdict: WRONG ANSWER

input
2000 100000
1000000000 1000000000
999824177 500000000 111947
345628 500000000 165362
999366104 500000000 16658
736583 500000000 4493
997324048 500000000 37994
749938 500000000 8832
995410485 500000000 92159
859625 500000000 100781
993182239 500000000 475859
990944872 500000000 181632
989087261 500000000 100643
987293145 500000000 123169
985598991 500000000 39883
983936568 500000000 179062
982269820 500000000 46524
980742632 500000000 47974
979255855 500000000 33477
977657357 500000000 168305
...
view   save

correct output
1234
1234
1234
12
12
1234
1234
12
1234
34
1234
34
1234
12
1234
12
1234
1234
1234
1234
...
view   save

user output
1
view   save

Test 24

Group: 3

Verdict: WRONG ANSWER

input
8 100000
1000000000 1000000000
200000000 384529926 2181527
400000000 269059852 2181527
400000000 499999960 2181527
600000000 384529886 2181527
600000000 615469994 2181527
800000000 499999920 2181527
400000000 38119745 2181527
597768045 995105726 2181528
113079208 2
187532125 1
187639621 3
113288525 1
113288517 4
187639619 4
187198704 4
187540569 2
187639628 4
187639620 3
...
view   save

correct output
1234
1
3
1234
1234
34
34
2
4
3
1
2
1234
1234
1
1
3
2
1234
1
...
view   save

user output
1
view   save