1 条题解

  • 0
    @ 2025-11-22 14:38:20
    #include<bits/stdc++.h>
    using namespace std;
    int main(){ //图书馆的逾期罚款 C++12级
    	int n,m;
    	cin>>n;
    	while(n--){
    		cin>>m;
    		if(m<=5)
    			cout<<m<<" ";
    		else{
    			cout<<5+(m-5)*2<<" ";
    		}
    	}
    	return 0;
    }
    
    
    • 1

    信息

    ID
    1987
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    (无)
    递交数
    3
    已通过
    3
    上传者