1 条题解

  • 0
    @ 2024-8-14 20:03:44
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    	int n;
    	cin>>n;
    	if(n%2==0){
    		cout<<n/2;
    	}else{
    		cout<<n/2+1;
    	}
    return 0;
    }
    
    
    • 1

    信息

    ID
    627
    时间
    1000ms
    内存
    64MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者