#include <bits/stdc++.h> using namespace std; int i; int num_even = 0; int num_odd = 0; int main() { while(cin >> i) if (i % 2 == 0) num_even++; else num_odd += i; cout << num_even << endl << num_odd << endl; return 0; }
微信直接扫码登录
使用经过邮箱注册的账号密码登录