Run ID:78380

提交时间:2024-06-18 20:06:20

#include<bits/stdc++.h> using namespace std; int main(){ int ci=1,zs=0; while(ci<=40){ if(ci%1==0&&ci<=10){ zs++; }else if(ci%2==0&&ci<=20){ zs++; }else if(ci%4==0&&ci<=40){ zs++; } ci++; } cout <<zs; return 0; }