Skip to content

Commit bedfbdf

Browse files
committed
Adding configuration for "Windmill problem".
1 parent aee773c commit bedfbdf

16 files changed

+363
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fscanf($stdin, "%d", $K);
2+
fscanf($stdin, "%d", $N);
3+
fscanf($stdin, "%d", $P);
4+
for ($i = 0; $i < $K; $i++)
5+
{
6+
fscanf($stdin, "%d %d", $x, $y);
7+
}
8+
9+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
10+
11+
echo("K+1 lines of answer\n");
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"namespace": "Community\\Training\\Medium\\WindmillProblem",
3+
"name": "Windmill problem",
4+
"group": "windmillProblem",
5+
"link": "https://www.codingame.com/ide/puzzle/windmill-problem",
6+
"tests": [
7+
{
8+
"name": "Example",
9+
"group": "example",
10+
"method": "Example",
11+
"file": "01 - example.txt"
12+
},
13+
{
14+
"name": "Parallelogram",
15+
"group": "parallelogram",
16+
"method": "Parallelogram",
17+
"file": "02 - parallelogram.txt"
18+
},
19+
{
20+
"name": "10 random points",
21+
"group": "10RandomPoints",
22+
"method": "10RandomPoints",
23+
"file": "03 - 10 random points.txt"
24+
},
25+
{
26+
"name": "Large",
27+
"group": "large",
28+
"method": "Large",
29+
"file": "04 - large.txt"
30+
},
31+
{
32+
"name": "Infinite loop",
33+
"group": "infiniteLoop",
34+
"method": "InfiniteLoop",
35+
"file": "05 - infinite loop.txt"
36+
},
37+
{
38+
"name": "Smarter approach required",
39+
"group": "smarterApproachRequired",
40+
"method": "SmarterApproachRequired",
41+
"file": "06 - smarter approach required.txt"
42+
},
43+
{
44+
"name": "Convex hull",
45+
"group": "convexHull",
46+
"method": "ConvexHull",
47+
"file": "07 - convex hull.txt"
48+
}
49+
]
50+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
3
2+
3
3+
1
4+
200 200
5+
400 300
6+
400 100
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
4
2+
10
3+
0
4+
200 200
5+
400 190
6+
400 100
7+
200 90
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
10
2+
30
3+
5
4+
654 114
5+
25 281
6+
250 228
7+
142 104
8+
692 558
9+
89 432
10+
32 30
11+
95 223
12+
238 517
13+
616 27
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
30
2+
1000
3+
2
4+
57 93
5+
86 369
6+
173 315
7+
257 217
8+
621 36
9+
595 162
10+
441 402
11+
740 521
12+
380 557
13+
455 514
14+
274 36
15+
28 372
16+
476 326
17+
389 433
18+
538 168
19+
573 181
20+
241 236
21+
24 180
22+
332 177
23+
139 522
24+
522 368
25+
526 573
26+
186 456
27+
424 537
28+
781 372
29+
607 362
30+
370 456
31+
165 409
32+
732 472
33+
670 543
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
30
2+
1234
3+
15
4+
241 310
5+
105 405
6+
490 158
7+
92 68
8+
20 411
9+
562 296
10+
783 60
11+
227 532
12+
549 368
13+
283 176
14+
108 268
15+
219 26
16+
656 266
17+
278 198
18+
168 317
19+
296 381
20+
88 345
21+
687 397
22+
518 254
23+
182 253
24+
484 286
25+
91 560
26+
307 7
27+
298 586
28+
721 319
29+
783 520
30+
199 423
31+
433 295
32+
441 462
33+
165 238
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
30
2+
123456789
3+
15
4+
241 310
5+
105 405
6+
490 158
7+
92 68
8+
20 411
9+
562 296
10+
783 60
11+
227 532
12+
549 368
13+
283 176
14+
108 268
15+
219 26
16+
656 266
17+
278 198
18+
168 317
19+
296 381
20+
88 345
21+
687 397
22+
518 254
23+
182 253
24+
484 286
25+
91 560
26+
307 7
27+
298 586
28+
721 319
29+
783 520
30+
199 423
31+
433 295
32+
441 462
33+
165 238
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
30
2+
1000
3+
0
4+
137 582
5+
782 64
6+
261 120
7+
507 460
8+
483 388
9+
214 96
10+
499 29
11+
399 443
12+
622 2
13+
712 456
14+
272 234
15+
605 104
16+
325 31
17+
22 26
18+
665 554
19+
9 390
20+
702 221
21+
432 29
22+
540 227
23+
782 448
24+
507 566
25+
238 353
26+
236 224
27+
779 470
28+
296 22
29+
426 569
30+
657 102
31+
190 303
32+
123 340
33+
738 512
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
1
3+
2
4+
1

0 commit comments

Comments
 (0)