void solve_1(){
int n,x,sum = 0;
cin >> n;
while(n--){
cin >> x;
sum += x * !(x % 2);
}
cout << sum;
void solve_2(){
int sum = 0;
for(int i = 2; i <= 32; i += 3) sum += i;
void solve_3(){
double cur = 65000;
for(int i = 1983; i <= 2019; i++)
cur += 0.3 * cur;
cout << cur;
void solve_4(){
for(int i = 3; i <= 1000; i += 3)
cout << i << " ";
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
void solve_1(){
int n,x,sum = 0;
cin >> n;
while(n--){
cin >> x;
sum += x * !(x % 2);
}
cout << sum;
}
void solve_2(){
int sum = 0;
for(int i = 2; i <= 32; i += 3) sum += i;
cout << sum;
}
void solve_3(){
double cur = 65000;
for(int i = 1983; i <= 2019; i++)
cur += 0.3 * cur;
cout << cur;
}
void solve_4(){
for(int i = 3; i <= 1000; i += 3)
cout << i << " ";
}