10499 - The Land of Justice

Moderator: Board moderators

saiful_sust
Learning poster
Posts: 97
Joined: Fri Aug 22, 2008 10:18 pm
Location: CSE.SUST.SYLHET

Re: 10499 The Land of Justice getting W/S

just u have to login then
click in edit option
select ur code and press delete
and submit..........
ok

kissu parina
New poster
Posts: 19
Joined: Thu May 20, 2010 8:58 am

Re: 10499 - The Land of Justice

thnkx to debashis and _.B._....
one day...

Fransisflug
New poster
Posts: 2
Joined: Tue Sep 06, 2011 10:38 am

Re: 10499 The Land of Justice getting W/S

long long int n;
while (cin >> n) {
if (n <= 0) {
break;
}
else if (n == 1) {
printf("0%%\n");
}
else {
printf("%lld%%\n", (long long int) round((n/4.0)*100));
}
}
return 0;
}

sdipu
New poster
Posts: 23
Joined: Sun May 19, 2013 1:50 am

Re: 10499 - The Land of Justice

you just have to use double. i tried with long long int, but it shows wrong answer every time.
Check out UVA Arena - a software build for UVA solvers @ http://dipu-bd.github.io/UVA-Arena/

New poster
Posts: 5
Joined: Mon May 12, 2014 10:10 am

Re: 10499 - The Land of Justice

Hi, for some reason i have been getting lots of TL on this problem
Can you guys take a look at my code? It worked on sample inputs (and the inputs i've seen here) Thanks!

Code: Select all

``````Removed after AC
``````
Last edited by lolicaddict on Fri Nov 21, 2014 3:20 pm, edited 1 time in total.

lighted
Guru
Posts: 585
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 10499 - The Land of Justice

Problem description says
The input file is terminated with a negative number
sdipu wrote:you just have to use double. i tried with long long int, but it shows wrong answer every time.
I got accepted with long long.
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman