Create 1774.c

pull/22/head
Kirigaya Kazuto 2016-06-28 14:33:31 +08:00 committed by GitHub
parent 48efc89c49
commit ca97ee504b
1 changed files with 15 additions and 0 deletions

15
QUSTOJ/1774.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
int main()
{
int tmp;
int odd=0;
int even=0;
while(scanf("%d",&tmp)==1)
{
if(tmp%2==1) odd+=tmp;
else even+=tmp;
}
return printf("%d %d\n",odd,even),0;
}