Page 2 of 2
Posted: Fri Jul 06, 2007 4:55 pm
by ayeshapakhi
hi...
my acc one gives..
Code: Select all
8/11
220-4/5
36/55
4-4/5
1/230
>>I think there's no such input.
220-4/5
0
There should be no input like test 6.. because denominator is 0 here..
Re: 11148 - Moliu Fractions
Posted: Mon Feb 02, 2009 8:15 pm
by mukit
Getting WA. Please give some I/O
Thank's in advance.
Re: 11148 - Moliu Fractions
Posted: Wed Feb 04, 2009 2:00 pm
by mukit
Forget my previous post. Got AC.
Re: 11148 - Moliu Fractions
Posted: Sun Oct 10, 2010 7:47 pm
by Shafaet_du
this will help you:
Code: Select all
6
this problem11148 is a little tricky for who solved less that 20 problems
i got4 wa in this problem 1/2of the world is water
there are 23such case and 23i is a imaginary number at 23-2/23 when 12/1 is 0/12
i dont kn23ow what the hell i am writing4-1/4 but this will 555 help you 5/124 for sure
12hope23 you34er have found your mistake 234 by now
23 34 12 23 1 1/1 1/1 2/2 4/5 5-4/3
output:
Code: Select all
222960
2
0
2187-273/496
2195856
1093548-4/5
@c/c++ coders: use strtok() for parsing.
Re: 11148 - Moliu Fractions
Posted: Sun Nov 14, 2010 3:44 pm
by sazzadcsedu
@shafaet_du, Some of your input is wrong.Because the problem statement clearly says-
There is always a space (ASCII #32) immediately after each operand.