ALICESIE spoj Solution - Correct, Optimal and Working

#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+ Solutions to various Programming Questions

Subscribe to my weekley newsletter