stats day 21, pt 1

This commit is contained in:
sejo 2021-12-21 09:32:19 -06:00
parent dc2182e0d1
commit 64da1ce6d1
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,7 @@ END{
print "p1 won", s1, nu, expn-j
won[1]++;
wonu[1] += nu
won1[expn-j]++
swon = 1
break
}
@ -68,6 +69,7 @@ END{
print "p2 won", s2, nu, expn-j
wonu[2] += nu
won[2]++
won2[expn-j]++
swon = 1
break
}
@ -83,6 +85,10 @@ END{
print wonu[1], wonu[2]
print maxwonturns
for(i=1;i<=maxwonturns;i++){
print i,"turns, p1:",won1[i],"p2:",won2[i]
}
exit
turn = 1

View File

@ -27,6 +27,7 @@ awk -c -f 01.awk inputfile
```
-------Part 1-------- -------Part 2--------
Day Time Rank Score Time Rank Score
21 00:29:17 3064 0 - - -
20 12:59:28 11947 0 13:14:02 11669 0 --- same as 18
18 >24h 16659 0 >24h 16484 0 --- solved it afterwards
17 00:41:03 2839 0 00:56:57 2841 0