Search found 5 matches

by odinni
Fri Feb 06, 2015 9:53 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 13774

Re: 207 - PGA Tour Prize Money

Hi brianfry713, I got AC finally..... :D But I want to reveal something wrong with the uDebug. I tried the input I created: 1 686211.33 2.2000 1.0000 1.0000 1.9000 1.5000 1.2000 1.2000 0.9000 1.1000 2.4000 1.3000 2.0000 1.8000 1.6000 1.5000 1.9000 1.1000 0.8000 0.9000 0.9000 1.8000 2.0000 1.0000 1.0...
by odinni
Fri Feb 06, 2015 4:29 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 13774

Re: 207 - PGA Tour Prize Money

Hi brianfry713, I fixed the mistake of trailing space when total score under 100. But still WA..... Here is my updated code. #include<stdio.h> //#include<conio.h> #include<string.h> int parseInt(char *shot) { int a,b,c=0; if(*shot!='D') for(a=strlen(shot)-1,b=1;a>-1;a--,b*=10) c+=(*(shot+a)-48)*b; e...
by odinni
Thu Feb 05, 2015 12:02 pm
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 13774

Re: 207 - PGA Tour Prize Money

Hi brianfry713, Thanks for your help again. Here is my updated code. ...but still WA... #include<stdio.h> //#include<conio.h> #include<string.h> int parseInt(char *shot) { int a,b,c=0; if(*shot!='D') for(a=strlen(shot)-1,b=1;a>-1;a--,b*=10) c+=(*(shot+a)-48)*b; else c=-1; return c; } int isAmateur(c...
by odinni
Wed Feb 04, 2015 10:09 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 13774

Re: 207 - PGA Tour Prize Money

Hi, brianfry713, thanks~~ I added 1e-8(=0.0000001f) to the floating value before printed. But still got WA... :-? rankMoney[e]=tempDb/temp*purse/100+.0000001f; BTW, I use an ancient runtime: Borland Turbo C++ 3.0 , and whether 1e-8 added or not, it always gives exactly the same output as uDebug outp...
by odinni
Tue Feb 03, 2015 1:35 pm
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 13774

Re: 207 - PGA Tour Prize Money

Hi there, I'm trying to solve problem 207, but got many WA. My code could produce exactly the same output of all test input I found here and uDebug. #include<stdio.h> //#include<conio.h> #include<string.h> int parseInt(char *shot) { int a,b,c=0; if(*shot!='D') for(a=strlen(shot)-1,b=1;a>-1;a--,b*=10...

Go to advanced search