Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24584 | LeoWang | 双面打印 | C++ | Accepted | 0 MS | 248 KB | 164 | 2023-08-14 06:22:44 |
#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; }