|
|
вернуться в форумI'm sure tests are wrong. Look example here! I've submitted one 'Accepted Pascal Solution' from forum and got accepted. Than I started to run my program and that program on random tests. After about 100,000 random tests I've noticed the difference. Example 24.80 24.83 My prg. answered 129 That prg. asnwered 125 But 24.80 / 100 * 125 = 31.0000000000 24.83 / 100 * 125 = 31.0375000000 What is the number of conductors? GREATER than 31 and LESS that 31.0375?? May be GREATER means NOT LESS? 24.80 / 100 * 129 = 31.992.. 24.83 / 100 * 129 = 32.0307.. And here all is OK. I got WA,my code also answered 129!!!! Послано use_c 6 ноя 2002 15:53 i got 125 bue also wa i got 125 bue also wa Re: i got 125 but also wa just now i change something in my program ,it got AC,i think u the problem have no mistakes in it. > NO!!!! Послано Serrg 23 янв 2003 02:07 my program got AC, but for this test it output 129! Re: I'm sure tests are wrong. Look example here! Послано ytj 7 дек 2005 10:22 but my program got 125 It's still wrong answer maybe FRAC funtion must be used Re: I'm sure tests are wrong. Look example here! Послано Sni 19 дек 2005 16:52 haha My pascal said that trunc(24.8*100)=2479 I'll use round(). My AC Pascal Pro gives 129. |
|
|