UVA 10499 - The Land of Justice

Problem PDF

Solution:

#include
int main()
{
long long int n;
while(scanf("%lld",&n)==1 && n>=0)
{
if(n==1)
printf("0%%\n");
else
printf("%lld%%\n",n*100/4);
}
return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10499/10499.cpp