| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| WA 3 | AYUBXON UBAYDULLAYEV TUIT | 1861. Кладбище в Дейе | 12 ноя 2012 20:03 | 1 |
WA 3 AYUBXON UBAYDULLAYEV TUIT 12 ноя 2012 20:03 why WA #3, please, give me any test ... |
| No subject | AYUBXON UBAYDULLAYEV TUIT | 1861. Кладбище в Дейе | 12 ноя 2012 20:03 | 1 |
No subject AYUBXON UBAYDULLAYEV TUIT 12 ноя 2012 20:03 Edited by author 12.11.2012 20:03 |
| help for wa 9 | fredAC | 1094. Дисплей | 12 ноя 2012 19:39 | 3 |
wrong on the following code /////////////////////// if(pos >maxline -1) pos = 0; a[pos++] = char; //////////////////// when test case: aaaaaaaaaaa.......a(total 80 a)<b b should in pos 1 instead of erasing pos 80
Yeah, my program's output is exactly "baaaaaaaaaa....a". But I still got WA#9. if(pos >maxline -1) pos = 0; a[pos++] = char; if (pos>maxline-1) pos=0; // may be this help for you Edited by author 12.11.2012 19:43 |
| The "beats" are backwards | Bogatyr | 1936. Шоушилин | 12 ноя 2012 18:35 | 1 |
|
| TEST Case #2 is wrong | Prasanna Kantal | 1005. Куча камней | 12 ноя 2012 15:38 | 3 |
I have made two solutions.. 1st one was failing at test case#5 and second one was failing @test case#2. Then I combined both and took the minimum out of both and in this case its again failing @test case#2. If you analyse, 1st one was failing@ Test Case#5 so its answer was proper for Test case#2. Now I took the minimum of 1st and 2nd solution and its again failing @Test case#2. That means my 2nd solution is giving minimal output than 1st one. So I can say that the Test case#2 is wrong. may be your 2nd solution is wrong although it luckily passes test1? > So I can say that the Test case#2 is wrong. 99.99% of all posts saying "test X is wrong" are wrong :). Of course, if your WA2 code calculates a smaller value for test #2 than your WA5 code (which gets the correct answer for #2), then your combination algorithm will yield the wrong result for test #2. |
| The server down? | DR. Zhihua Lai | | 12 ноя 2012 12:43 | 11 |
Why all submissions are not judged? always 'waiting' shown... I'm waiting...... Edited by author 11.11.2012 17:30 me too.. have been waiting all day now... too bad Yesterday the site was down for some time, after that testing system went down. It is down for almost a 24 hours. I wrote a letter to support team. me too... have sent a email to the support team... weekend without Timus sucks. > weekend without Timus sucks +1 ! Yeah,drinking and partying is no where near Timus! may be electricity is turn off? Can someone tell me when the server will turn on again? I have waited for a long time. |
| Do all 3 lines intersect at a single point? | Orfest (Novosibirsk SU) | 1938. Карибский треугольник | 12 ноя 2012 02:53 | 2 |
Is it guaranteed, Captain Jack Sparrow, Pintel and Ragetti are located at the same point? The second test tells you 'No'. |
| Can anyone explain the problem? I can't understand it. | BYF | 1178. Дороги Акбардина | 11 ноя 2012 18:29 | 3 |
If the towns ought to be all connected with each other, then why there's just N/2 roads? I think there should at least be N-1 roads. oooooooooooh,I know. I've been a fool for so many times. I can't understand this problem.Plz |
| mystery sign '?' | Bekbolot | 1933. Пушки к бою! | 10 ноя 2012 18:56 | 2 |
Question mark means that you have submitted something, but since standings are "frozen", no one (except you and your monkey, if one exists) knows verdict of this submit (AC, WA or whatever). Edited by author 23.12.2012 15:45 |
| Test #8 | code_freaks | 1931. Отличная команда | 10 ноя 2012 18:01 | 4 |
Test #8 code_freaks 10 ноя 2012 15:15 Edited by author 10.11.2012 15:27 Remember when the pirate is exchanged, this is also counted as a comparison for the new pirate |
| Take the A+B into account? | Ade (FDU) | 1940. Непростые годы | 10 ноя 2012 16:25 | 1 |
The the example, is (23+7 == 3) taken into account? Thanks // Oh. I saw the "Hint" ... Edited by author 10.11.2012 16:29 Edited by author 10.11.2012 16:29 |
| Just need you AC code,thank you! | plp | 1757. Золотые слитки | 10 ноя 2012 11:53 | 1 |
WA#7,could anybody help me? |
| WA#7,could anybody help me? | plp | 1757. Золотые слитки | 10 ноя 2012 11:53 | 1 |
Just need you AC code,thank you! |
| How is this different from 1012? | Md. Taufique Hussain | 1013. K-ичные числа. Версия 3 | 10 ноя 2012 02:34 | 1 |
I solved 1012 using BigInteger. Same solution got AC for this problem too. I know there is a difference in the limit of input but where is the difference between 1012 and 1013 in solving strategies? |
| WA #4 | Anuar | 1640. Кольцо холода | 9 ноя 2012 22:10 | 5 |
WA #4 Anuar 29 окт 2011 10:34 I've got WA on test 4. People who had WA on this test too, what did you fix? I use 2 ternary searchs. Edited by author 29.10.2011 10:37 Edited by author 29.10.2011 10:37 I had WA #4 too. I suppose in that test case the coordinates which my program has given as answer were coincided with some from the input. I got AC as changing them adding some fraction. Yes, that change doesn't guarantees you a correct answer, but if the fraction has about 9 digits after the decimal point the probability of coincidence is negligible. The fraction I used is 0.0111. >I use 2 ternary searchs. Why? Just look for any point, in which isn't placed any monster. If someone have WA#5 check answer precision. |
| why it is wrong (JAVA) | shaihin | 1607. Такси | 9 ноя 2012 18:37 | 1 |
import java.util.*; public class taksi { public static void main(String args[]) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int a1 = in.nextInt(); int b = in.nextInt(); int b1 = in.nextInt(); int g = 0; for(int i = b;i>a;i=i-b1) { a=a+a1; if(i>a) g = a; } System.out.println(" kelisken bagasy :"+g); } } |
| I don't know what is the problem | Diego Alfonso Prieto Torres | 1049. Отважные воздухоплаватели | 9 ноя 2012 06:27 | 1 |
somebody know what is the test 3, I don't know what problem I have in my code; here is it #include <stdlib.h> #include <stdio.h> int main(){ int desicion[10]; int exponentes[1000]={0}; int i,j,valor=1; int numeroDivisores=1; int valorIteracion; int impresion; for(i=0;i<10;i++){ scanf("%i",&desicion[i]); valor*=desicion[i]; } i=2; j=0; while(valor!=1){ if(valor%i==0){ exponentes[j]++; valor=valor/i; }else{ i++; numeroDivisores=numeroDivisores*(exponentes[j]+1); j++; } } numeroDivisores=numeroDivisores*(exponentes[j]+1); numeroDivisores%=10; printf("%i\n",numeroDivisores); } |
| Test 1 - WRONG. Please help | vokson | 1820. Уральские бифштексы | 9 ноя 2012 00:41 | 2 |
There is my code on C. All test I found are passed. For example: hot (3,2) == 3); hot (3,10) == 2); hot (1,5) == 2); hot (5,3) == 4); hot (10,3) == 7); hot (7,3) == 5); hot (9,5) == 4); But server says that anyway test 1 - wrong. What is wrong? Please give me any test, which my program can't decide corectly. int hot (int n1, int k) { int n2, minutes = 0;
//Жарим первую сторону по максимальному числу бифштексов minutes += n1/k; //Пожаренные первые стороны становятся недожаренными вторыми n2 = minutes * k; //Ищем недожаренные первые стороны n1 -= minutes*k; //Докладываем на сковороду n2, если есть if (n2 > 0) { n2 -= (k-n1); if (n2<0) n2=0; } //Жарим остатки n1 и то, что доложили minutes++; //Пожаренное n1 переходит в n2 n2 += n1; n1 = 0; //Жарим вторую сторону minutes += (int) ceil((float)n2/k);
return minutes; } int main() { int n,k;
scanf("%d %d",&n, &k); printf("%d", hot(n,k)); return (EXIT_SUCCESS); } Edited by author 01.10.2012 09:26 Edited by author 09.11.2012 00:48 Edited by author 09.11.2012 00:48 |
| wrong anser | shahriar | 1928. И вновь про экологию | 9 ноя 2012 00:22 | 1 |
my solution get wrong answer ? can anyone give me sample test cases ? or detect my error in my algorithm ? // my code //Bismillahir Rahmanir Rahim Thanks Allah 4 everything #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <map> #include <queue> #include <string.h> #include <iostream> #include <algorithm> using namespace std; int dp(int a ,int opt,int k) ; int max(int m1,int m2) ; using namespace std; int save[10002][102] ; int call[10002][102] ;
int k1; int max_b=0; int n,m,k2; int main() {
while((scanf("%d%d%d",&n,&m,&k2))==3) { memset(save,0,sizeof(save)); memset(call,0,sizeof(call)); k1=0; k1=m; max_b=0; int max_a=dp(n,0,k2); cout << max_a << " " << max_b << endl ; } return 0; } int dp(int a,int opt,int k) {
//cout << a << " " << opt << " " << k << endl ; //getchar() ;
int r1,r2; r1=opt; if(r1==0) r2=1; else r2=0; if(a<=0) return 0; if(a<k && a<k1 ) return k1; if(a<k && a>k1) return a ; if(a==k) return a; if(k==0) return 0; if(call[a][k]==1) return save[a][k];
call[a][k]=1; save[a][k]=max(dp(a,r1,k-1) , k+ dp(a-k - dp(a-k,r2,k2),r1,k2) ) ; if(opt==1) max_b=save[a][k];
return save[a][k]; }
int max(int m1,int m2) { if(m1>=m2) return m1; return m2; }
|
| I want some test | Pegasus | 1727. Магические числа Знайки | 8 ноя 2012 21:28 | 2 |
Test : 100500 Answer : 6286 1 2 .. 6285 6300 |