Skip to content

Instantly share code, notes, and snippets.

@fullmated
Created May 1, 2011 09:41
Show Gist options
  • Save fullmated/950374 to your computer and use it in GitHub Desktop.
Save fullmated/950374 to your computer and use it in GitHub Desktop.
Aizu Online Judge No.0510 "Score"
#include <cstdio>
int main(){
int a[4], b[4], as=0, bs=0;
scanf("%d %d %d %d",a,a+1,a+2,a+3);
scanf("%d %d %d %d",b,b+1,b+2,b+3);
for(int i = 0; i < 4; i++){
as += a[i], bs += b[i];
}
if(as > bs) printf("%d\n", as);
else printf("%d\n", bs);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment