World Cup group stage: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 215:
=={{header|Elena}}==
{{trans|Java}}
ELENA 4.
<lang elena>import system'routines;
import extensions;
Line 221:
public singleton program
{
static games := new string[]
static results := "000000";
Line 228:
{
var s := results;
if (results=="222222") { ^ false };
Line 239:
{
var points := new IntMatrix(4, 10);
int counter := 0;
{
var records := new int[]
for(int i := 0, i < 6, i += 1)
Line 263:
points[i][records[i]] := points[i][records[i]] + 1
}
}
while:(program.nextResult());
new Range(0, 4).zipForEach(new string[]
{
console.printLine(l,": ", points[3 - i].toArray())
|