Skip to content

Commit c2b49c5

Browse files
committed
Adding configuration for
"Virus spreading and clustering".
1 parent efd6249 commit c2b49c5

18 files changed

+2527
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fscanf($stdin, "%d", $npeople);
2+
fscanf($stdin, "%d", $nlinks);
3+
for ($i = 0; $i < $nlinks; $i++)
4+
{
5+
$LINKS = stream_get_line($stdin, 1024 + 1, "\n");
6+
}
7+
8+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
9+
10+
echo("answer\n");
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"namespace": "Community\\Training\\Medium\\VirusSpreadingAndClustering",
3+
"name": "Virus spreading and clustering",
4+
"group": "virusSpreadingAndClustering",
5+
"link": "https://www.codingame.com/ide/puzzle/virus-spreading-and-clustering",
6+
"tests": [
7+
{
8+
"name": "5 items and 2 relationships",
9+
"group": "5ItemsAnd2Relationships",
10+
"method": "5ItemsAnd2Relationships",
11+
"file": "01 - 5 items and 2 relationships.txt"
12+
},
13+
{
14+
"name": "20 items and 6 relationships",
15+
"group": "20ItemsAnd6Relationships",
16+
"method": "20ItemsAnd6Relationships",
17+
"file": "02 - 20 items and 6 relationships.txt"
18+
},
19+
{
20+
"name": "100 items and 50 relationships",
21+
"group": "100ItemsAnd50Relationships",
22+
"method": "100ItemsAnd50Relationships",
23+
"file": "03 - 100 items and 50 relationships.txt"
24+
},
25+
{
26+
"name": "People has at least 1 connexion",
27+
"group": "peopleHasAtLeast1Connexion",
28+
"method": "PeopleHasAtLeast1Connexion",
29+
"file": "04 - people has at least 1 connexion.txt"
30+
},
31+
{
32+
"name": "People has at least 2 connexion : argh !",
33+
"group": "peopleHasAtLeast2ConnexionArgh",
34+
"method": "PeopleHasAtLeast2ConnexionArgh",
35+
"file": "05 - people has at least 2 connexion : argh !.txt"
36+
},
37+
{
38+
"name": "Average connexion 1 per people : argh !",
39+
"group": "averageConnexion1PerPeopleArgh",
40+
"method": "AverageConnexion1PerPeopleArgh",
41+
"file": "06 - average connexion 1 per people : argh !.txt"
42+
},
43+
{
44+
"name": "Average connexion 0.8 per people",
45+
"group": "averageConnexion08PerPeople",
46+
"method": "AverageConnexion08PerPeople",
47+
"file": "07 - average connexion 0.8 per people.txt"
48+
},
49+
{
50+
"name": "Average connexion 0.5 per people",
51+
"group": "averageConnexion05PerPeople",
52+
"method": "AverageConnexion05PerPeople",
53+
"file": "08 - average connexion 0.5 per people.txt"
54+
}
55+
]
56+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
5
2+
2
3+
4 0
4+
0 2
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
20
2+
6
3+
7 1
4+
13 18
5+
12 1
6+
12 2
7+
12 0
8+
14 16
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
100
2+
50
3+
10 82
4+
33 29
5+
83 21
6+
17 12
7+
28 3
8+
33 49
9+
86 23
10+
2 23
11+
60 88
12+
57 91
13+
79 75
14+
20 14
15+
90 76
16+
83 44
17+
1 53
18+
0 15
19+
57 0
20+
36 21
21+
84 6
22+
86 32
23+
66 61
24+
33 48
25+
17 95
26+
20 66
27+
76 4
28+
28 54
29+
95 28
30+
96 51
31+
96 2
32+
24 16
33+
61 54
34+
82 35
35+
40 68
36+
21 24
37+
76 66
38+
34 24
39+
0 94
40+
87 47
41+
78 18
42+
18 47
43+
84 85
44+
91 4
45+
4 83
46+
89 39
47+
8 19
48+
35 79
49+
60 92
50+
53 87
51+
22 4
52+
57 60

0 commit comments

Comments
 (0)