From ca97ee504b9a1e2dbe105f2f8c0329a9c5288984 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Tue, 28 Jun 2016 14:33:31 +0800 Subject: [PATCH] Create 1774.c --- QUSTOJ/1774.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 QUSTOJ/1774.c diff --git a/QUSTOJ/1774.c b/QUSTOJ/1774.c new file mode 100644 index 0000000..62ace26 --- /dev/null +++ b/QUSTOJ/1774.c @@ -0,0 +1,15 @@ +#include +#include + +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; +}