-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathALICESIE.cpp
More file actions
33 lines (29 loc) · 904 Bytes
/
ALICESIE.cpp
File metadata and controls
33 lines (29 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include<stdio.h>
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
// int a[1000001];
int main(){
int t;
scanf("%d",&t);
while(t--){
int n;
scanf("%d",&n);
/*memset(a,0,sizeof(a)/sizeof(a[0]));
int cntr=0;
for(int i=n;i>1;i--){
for(int j=2;j<i;){
if(i%j==0){
a[j]=1;
}
j++;
}
if(!a[i]){printf("%d\n",i);cntr++;}
}*/
if(n&1)
printf("%d\n",n/2+1);
else printf("%d\n",n/2);
}
return 0;
}