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; +}