January 2022 enrollments are closed and the course commences on 8th of January, 2022. For future cohorts Join the waitlist

ALICESIE Solution



#include <stdio.h>

int main( int argc , char * argv[] ) {

	int t;
	scanf("%d" , &t);

	while ( t-- ) {

		int n;
		scanf("%d" , &n);
		printf("%d\n" , (n+1)/2);

	}

	return 0;
}

470+ Competitive Programming Solutions

If you like what you read subscribe to my newsletter.

I write essays on various engineering topics and share it through my weekly newsletter 👇