File size: 360 Bytes
c4b0eef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <cstdio>
#include <cmath>
 
using namespace std;
 
int main() {
    int t;
    long long int n;
    scanf( "%d", &t );
    while ( t > 0 ) {
        scanf( "%lld", &n );
        if ( n % 2 == 0 ) {
            printf( "%lld\n", n / 2 );
        }
        else {
            printf( "%lld\n", n / 2 + 1 );
        }
        --t;
    }
    return 0;
}