ppj/dev/meowmeow/Meuczki.java
2024-05-11 23:30:10 +02:00

42 lines
1.4 KiB
Java

/*
* TASK 6
* archived at https://git.femboy.science/femsci/ppj/src/branch/task/6
* by femsci
*/
package dev.meowmeow;
import java.util.Arrays;
import java.util.Map;
public class Meuczki {
public static void main(String[] args) {
// this cute lil copypasted structure, very stringified <3
String[][] arr = { { "Germany", "2", "Scotland", "1" },
{ "Poland", "2", "Germany", "0" },
{ "Germany", "1", "Ireland", "1" },
{ "Poland", "2", "Scotland", "2" },
{ "Scotland", "1", "Ireland", "0" },
{ "Ireland", "1", "Poland", "1" },
{ "Ireland", "1", "Scotland", "1" },
{ "Germany", "3", "Poland", "1" },
{ "Scotland", "2", "Germany", "3" },
{ "Ireland", "1", "Germany", "0" },
{ "Scotland", "2", "Poland", "2" },
{ "Poland", "2", "Ireland", "1" } };
// twoliner 🥺🥺
MatchCollection tournament = MatchCollection.Parse(arr);
Map<String, Integer> points = tournament.getPointsDistribution();
int[] pointVector = new int[] {
points.get("Germany"),
points.get("Ireland"),
points.get("Poland"),
points.get("Scotland")
};
// :3
System.out.println(Arrays.toString(pointVector));
}
}