为什么还是60分

tctm169 张哲瀚 2025-05-01 17:37:38 2025-05-01 17:38:37 7

#include <bits/stdc++.h>

#include #include #include

#include #include #include

using namespace std;

int n;

int main(){

while(cin>>n){
	if(n>=40){
		cout<<100<<endl; 
	}else if(n>=21 && n<40){
		cout<<80+(n-20)<<endl;
	}else if(n>=11 && n<20){
		cout<<60+(n-10)*2<<endl;
	}else cout<<6*n<<endl;
}

}

{{ vote && vote.total.up }}

共 2 条回复

CPP 刷题王

明显输入为 时输出应为

CPP 刷题王

@root 数据有误。