Initial commit
This commit is contained in:
commit
f242d2b0df
420 changed files with 62521 additions and 0 deletions
1
2021/day02/day02_golf.c
Normal file
1
2021/day02/day02_golf.c
Normal file
|
@ -0,0 +1 @@
|
|||
c,n,p,d,a;main(){while(scanf("%c%*s%d\n",&c,&n)>1)c^'d'?a+=n:c^'f'?p+=n,d+=a*n:a-=n;printf("%d %d",p*a,p*d);}
|
Loading…
Add table
Add a link
Reference in a new issue