Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24399 | 王皓暄 | 双面打印 | C++ | Accepted | 0 MS | 244 KB | 166 | 2023-08-11 17:56:56 |
#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; }