Implementation1 [코드포스] 129A : Cookies https://codeforces.com/problemset/problem/129/A Problem - 129A - Codeforces codeforces.com //C++ //C++ #include #define F_I ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define pi 3.1415926535 using namespace std; typedef long long ll; int arr[101]; int main() { F_I; ll n, sum = 0, even = 0, odd = 0; cin >> n; for (ll i = 0; i > arr[i]; sum += arr[i]; if (arr[i] % 2 == 0.. 2020. 8. 7. 이전 1 다음