Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
43043 | yuzhengxun | 双面打印 | C++ | Accepted | 0 MS | 252 KB | 154 | 2024-03-06 20:26:46 |
#include<iostream> using namespace std; int main() { int n,m; cin>>n; if(n%2==0){ cout<<n/2; }else{ m=n/2;cout<<m+1; } return 0; }