just u have to login then
click in edit option
select ur code and press delete
and submit..........
ok![]()
![]()
![]()
10499 - The Land of Justice
Moderator: Board moderators
-
- 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
-
- New poster
- Posts: 19
- Joined: Thu May 20, 2010 8:58 am
-
- 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;
}
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;
}
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 ![:(](./images/smilies/icon_frown.gif)
Can you guys take a look at my code? It worked on sample inputs (and the inputs i've seen here) Thanks!
![:(](./images/smilies/icon_frown.gif)
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.
Re: 10499 - The Land of Justice
Problem description says
![:)](./images/smilies/icon_smile.gif)
The input file is terminated with a negative number
I got accepted with long long.sdipu wrote:you just have to use double. i tried with long long int, but it shows wrong answer every time.
![:)](./images/smilies/icon_smile.gif)
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman
-
- New poster
- Posts: 5
- Joined: Mon May 12, 2014 10:10 am
Re: 10499 - The Land of Justice
Thanks! I got AC. I forgot to check if the number was negative...
That was stupid of me
I should read the problem description more often.
That was stupid of me
![:oops:](./images/smilies/icon_redface.gif)