Problem 1:- Contest Page | CodeChef

#include

using namespace std;

int main() {

int T;cin>>T;

int p;

while(T–){

int N;

cin>>N;

if(N==1){

p=1;

}

else{

p = (N+1)/2;

```
}
cout<<p<<endl;
}
return 0;
```

}

- Test Case 1:

Input:

2

1

3

Output:

1

2

- Test Case 2: (Self-Created)

Input:

3

1

3

7

Output:

1

2

4