Search found 6 matches

by The CodeMaker (AIUB)
Sat Sep 04, 2004 4:12 am
Forum: Volume 106 (10600-10699)
Topic: 10622 - Perfect P-th Powers
Replies: 47
Views: 31939

HI, Here is my code.....can anyone tell me why I get WA? :( [c]#include<stdio.h>
#include<math.h>

void main()
{
double pp,num,snum;
int i;

while(scanf("%lf",&num)==1)
{
if(!num)
break;
snum=num;

if(num<0)
num=-num;
for(i=31;i>=1;i--)
{
pp=pow(num,1.0/i);

if(pp-floor(pp)==0 ...
by The CodeMaker (AIUB)
Thu Aug 12, 2004 8:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10313 - Pay the Price
Replies: 42
Views: 26288

10313

Hi, I think i have almost solved the problem, but i need some I/O data because I got WA, I think the error is small.... can anyone give me any correct I/O? I failed to make some valid I/O for the 3rd case... :(
by The CodeMaker (AIUB)
Thu Aug 12, 2004 2:43 pm
Forum: Volume 106 (10600-10699)
Topic: 10685 - Nature
Replies: 41
Views: 25620

Hi dreamer #1 :D I got accepted after changing it to ">0" / "<0" , i cant believe that this thing got me...... :( , well u know, after i solved 3( i should have solved C and the one with infix postfix, but i got in panic and failed) , i looked for the 1st round problems(i missed it) i took it as a ...
by The CodeMaker (AIUB)
Thu Aug 12, 2004 7:09 am
Forum: Volume 106 (10600-10699)
Topic: 10685 - Nature
Replies: 41
Views: 25620

Hi, here is some I/O from my code....i think it is ok, then why wrong answer....can anyone give me something new to try out :-? [c]Input:
5 5
a b c d e
a c
b d
e a
c d
b c

10 3
a b c d e f g h i j
a j
a f
j f

3 1
a b c
c b

5 3
a b c d e
a b
a c
a d

4 2
a
b
c
d
a c
b d

3 3
a
b
c
a b
c b
a c

8 7 ...
by The CodeMaker (AIUB)
Thu Aug 12, 2004 5:42 am
Forum: Volume 106 (10600-10699)
Topic: 10685 - Nature
Replies: 41
Views: 25620

Hi :) Thanks a lot for ur reply...

ok, I think u had a quick view on my code :wink: (ofcourse who wants to waste time on other's junk when we have our own dying problems :roll: )
but still some people kind like u reply...

Well I think, these may not be the bugs, ofcourse there is something wrong ...
by The CodeMaker (AIUB)
Wed Aug 11, 2004 10:49 pm
Forum: Volume 106 (10600-10699)
Topic: 10685 - Nature
Replies: 41
Views: 25620

Hi, someone plz help me in finding the error in my code......i have no idea what's wron......

Code: Select all

code removed after AC

Go to advanced search