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 ...
Search found 6 matches
- Sat Sep 04, 2004 4:12 am
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31939
- 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... 

- 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 ...
- Thu Aug 12, 2004 7:09 am
- Forum: Volume 106 (10600-10699)
- Topic: 10685 - Nature
- Replies: 41
- Views: 25620
- Thu Aug 12, 2004 5:42 am
- Forum: Volume 106 (10600-10699)
- Topic: 10685 - Nature
- Replies: 41
- Views: 25620
- 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