>>ankit.arora
did u check the sample inputs. for the following input 1423 2222 ur output is 44.12 but the correct output is 44.13.
use double calculation and output like this
printf(".2lf\n" , res);
and don't forget about EPS.
Hope this helps.
Actually for this input the actual floating answer ...
Search found 11 matches
- Wed Aug 01, 2007 7:41 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96709
- Tue Jul 31, 2007 5:21 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96709
- Tue Jun 26, 2007 7:53 pm
- Forum: C++
- Topic: BigInt in C++!!!
- Replies: 4
- Views: 6974
- Tue Jun 26, 2007 12:04 am
- Forum: C++
- Topic: BigInt in C++!!!
- Replies: 4
- Views: 6974
BigInt in C++!!!
can someone please explain me what is this BIGINT and how can i use it for lengthy integer values...... actually i tried the syntax but there was a stright forward error....... please help!!!!!
Thanks!!!
Thanks!!!
- Sun Jun 24, 2007 10:26 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11100 - The Trip, 2007
- Replies: 18
- Views: 17270
- Fri Jun 22, 2007 9:55 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10935 - Throwing cards away I
- Replies: 15
- Views: 12151
- Wed Jun 20, 2007 1:57 am
- Forum: Volume 104 (10400-10499)
- Topic: 10451 - Ancient Village Sports
- Replies: 22
- Views: 13570
- Wed Jun 20, 2007 1:51 am
- Forum: Volume 109 (10900-10999)
- Topic: 10935 - Throwing cards away I
- Replies: 15
- Views: 12151
i am getting PE but the output seems to be in order..... please help!!
Code: Select all
CODE REMOVED AFTER AC
- Tue Jun 19, 2007 8:25 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10903 - Rock-Paper-Scissors Tournament
- Replies: 27
- Views: 16083
- Thu May 24, 2007 3:00 pm
- Forum: Volume 4 (400-499)
- Topic: 408 - Uniform Generator
- Replies: 48
- Views: 9936
P.E. in 408
I am getting P.E. in 408...... someone please help!
#include<iostream>
using namespace std;
int main()
{
int step,mod;
while(cin>>step>>mod)
{
int arr[100010],set=0,prev,i,j,count,seed;
for(j=0;j<mod;j++)
arr[j]=0;
prev=0;
count=0;
while(1)
{
if(count==mod)
{
set=1;
break ...
#include<iostream>
using namespace std;
int main()
{
int step,mod;
while(cin>>step>>mod)
{
int arr[100010],set=0,prev,i,j,count,seed;
for(j=0;j<mod;j++)
arr[j]=0;
prev=0;
count=0;
while(1)
{
if(count==mod)
{
set=1;
break ...
- Tue May 22, 2007 10:16 pm
- Forum: Volume 4 (400-499)
- Topic: 408 - Uniform Generator
- Replies: 48
- Views: 9936
408 P.E.........Please help
This is my code for prob 408 in which i m getting repeated P.E
please help!!!!
#include<iostream>
using namespace std;
int main()
{
int step,mod;
while(cin>>step>>mod)
{
int arr[100010],set=0,prev,i,j,count,seed;
for(j=0;j<mod;j++)
arr[j]=0;
prev=0;
count=0;
while(1)
{
if(count ...
please help!!!!
#include<iostream>
using namespace std;
int main()
{
int step,mod;
while(cin>>step>>mod)
{
int arr[100010],set=0,prev,i,j,count,seed;
for(j=0;j<mod;j++)
arr[j]=0;
prev=0;
count=0;
while(1)
{
if(count ...