| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| WA#21 | soloviyova_ssau | 1348. Пусти козла в огород 2 | 14 дек 2015 00:16 | 5 |
WA#21 soloviyova_ssau 6 дек 2008 21:22 I think in this test you deal with triangle with CAB or CBA is pi/2 and you should handle this case too, not only cases when these angles more or less then pi/2, it's about precision. the two point A and B is the same point。 Re: WA#21 Lochinbek_Boboyev_TUIT 4 фев 2012 18:09 Yes, the test is when A=B, but in task says that AB is a segment. |
| i got accepted 0.078 sec | panic | 1139. Городские кварталы | 13 дек 2015 22:38 | 5 |
i used bresenham line drawing algorithm :)) together with gcd() I'm too got AC 0.001 sec! |
| tests | Felix_Mate | 2071. Фруктовые коктейли | 13 дек 2015 17:12 | 1 |
tests Felix_Mate 13 дек 2015 17:12 test: 3 A B ABP
my ans: 3 2 3 1
test 5 A B ABP AB AP my ans: 3 2 4 3 5 1 test 7 A AP BP ABP P BP BP my ans: 3 5 3 6 7 4 2 1 Edited by author 13.12.2015 17:36 |
| WA 23 any ideas? | Nodir NAZAROV [TUIT-Karshi] | 2071. Фруктовые коктейли | 12 дек 2015 14:15 | 8 |
I didn't find any case that my algorithm fails. Please give me test cases for test #23, I see there are a lot of WA#23. I guess, it has to do with something when certain types of drinks are not present. Initially, i only analyzed one possible permutation, and got WA15. Then, i added another one to check, and got WA31. I threw in 4 more to check before giving answer, and got WA95. I probably missed just a few more unique cases, though i never figured out what was the problem. Well, in the end, i stopped bothering and just checked all 7! permutations. It's a lot more excessive than just checking a few selected, but will guarantee AC. You should do that too, probably. Thanks Jane for your advice! It's obvious that possible number of pourings are 1 to 5. So I've put all the conditions that requires certain number of pourings. If these conditions are set well you don't have to check all the 7! permutations (I think that's quicker and easier solution, maybe I'm wrong). No problem~ Also, the worst case is 4, see A AB ABP AP P BP B 1 pouring for A, 1 pouring for P, 2 pourings for B, if all present. That's the only one i checked when i got WA15. I guess, at that point, my fault was something like... if AP and P aren't present, then we don't interrupt our pouring, and B is 1 pouring then. Or maybe that wasn't the thing... anyway i fixed that in my final version. hey Jane, How come the worst case is 4, not 5? If all types are present then it should be as following (You cannot pour P over B, hence 1 A, 2 B, and 2 P): 12345 A.... AB... ABP.. A.P.. ..P.. ...BP ...B. Please correct me if I'm wrong. Um, i just listed pourings in an order of a growing number of them, a proper order is, of course, 1 for A, 2 for B and 1 for P. As for your table, i'm not sure why you put that P to the right. A.... AB... ABP.. A.P.. ..P.. ..PB. ...B. I mean, PB doesn't mean we pour P first, but if we represent it _this_ way... Add: I'm not sure if above was proper explanation, maybe i'll explain it like this: in A AB ABP AP P BP B, it goes 1. Pour A in 1-4. 2. Pour B in 2-3 and 6-7 3. Pour P in 3-6. Oh, and you can email me if you want to... Edited by author 12.12.2015 00:31 Thanks a lot. That explains well. Actually I thought the order should be maintained, probably most of the WA#23 because of wrong understanding of the problem statement. Good job on finally making it~ Edited by author 15.12.2015 01:37 |
| Problem 1434 "Buses in Vasyuki" has been rejudged (+) | Sandro (USU) | 1434. Автобусы города Васюки | 12 дек 2015 04:53 | 2 |
New anti-(N*N*M) test was added. TL was decreased to 1 second (this TL better corresponds to original 3 seconds in 2006). About 100 authors lost AC. TL was corrected to 1.5 seconds |
| Problem | Vladimir | 1044. Счастливые билеты. Easy! | 11 дек 2015 22:03 | 9 |
why do you always speak and write english? aren't you Russian? please, give the Russian version of this problem!!!!! English is necessary, Russian is optional I'm not english i'm kazakh so, can you explain me how to do this write me to input.txt@mail.ru Есть вещь такая, как переводчик google. Попробуй ;) Marat Bakirov speak right. I'm Vietnamese. I don't speak English. But I want play on the Timus Online Judge. Why?
Because, I want learn English from the problem and the conversion on forum of discuss. Thank. I think have some mirror gramar of these sentence. Edited by author 30.03.2010 17:18 this is not a good place to learn english from... the problem statements have lots of grammar and lexical mistakes, and most of the people on forums don't speak english so well either. Re: Problem Ahmet Faruk Ozkan OTTOMAN(OSMANLI)) 25 авг 2012 00:42 I'm Turkish. I don't know russian. if you don't know english that's your problem. by the way there's a russian version of this site on the left cornere of the page; if you click on RUS you can solve all the problems ;-) Edited by author 10.03.2013 20:15 fuck you son of a bitch turkish |
| WA on #6 | Double_O | 1501. Чувство прекрасного | 10 дек 2015 12:49 | 1 |
Can anyone give some test cases? #include<bits/stdc++.h> using namespace std; int i, j, k, l, x, y, z, m, n, ans; string first, second; int dp[1010][1010][3][4], dir[1010][1010]; int make_way(int first_pile, int second_pile, char c, int state) { //cout << first_pile << ' ' << second_pile << endl; if(first_pile == n && second_pile == n){ if(state > 1) return 0; else return 1; } if(state > 1) return 0; int p = 0, q = 0, r = 0; char d; if(c == '0') d = '1'; else d = '0'; if(first_pile < n){ if(first[first_pile] == c){ p = make_way(first_pile + 1, second_pile, c, state + 1); } else{ p = make_way(first_pile + 1, second_pile, d, 1); } } if(second_pile < n){ if(second[second_pile] == c){ q = make_way(first_pile , second_pile + 1, c, state + 1); } else{ q = make_way(first_pile , second_pile + 1, d, 1); } } if(p == 1){ dir[first_pile][second_pile] = 1; } else if(q == 1) dir[first_pile][second_pile] = 2; dp[first_pile][second_pile][c - '0'][state] = p | q; return dp[first_pile][second_pile][c - '0'][state]; } int main() { cin >> n >> first >> second; ans = make_way(0, 0, '0', 0); if(!ans){ cout << "Impossible" ; return 0; } for(i = 0, j = 0; i < n || j < n; ){ cout << dir[i][j]; if(dir[i][j] == 1) i++; else j++; } return 0; } |
| Why WA#10? Wrong statement? | Nodir NAZAROV [TUIT-Karshi] | 2052. Физкультура | 10 дек 2015 02:46 | 2 |
I guess input for test #10 is larger than 9. According to my understanding of problem statement, output is always 1 or 2 or 3. The algorithm is pretty straightforward: if all the digits of input except first one, is 9 then print 3. If one among them is 8 and remaining is 9 then print 2, otherwise 1. Any thoughts? I thought Vasya has to stay in his place, maybe that's where it confused me. But now I read statement again and it says "But Vasya found it very boring as he was the first in the line and didn’t have to change his place." |
| WA #6 | Filip Franik | 1623. Fractal Labyrinth | 9 дек 2015 20:56 | 1 |
WA #6 Filip Franik 9 дек 2015 20:56 Hello, I got WA#6 But for few days I'm unable to find a test that fails for my algorithm. Does anyone has any hints? I would really appreciate any help. |
| WA#16? | npenate | 1104. Не спрашивай даму о возрасте | 9 дек 2015 19:53 | 3 |
WA#16? npenate 11 июн 2011 12:46 min base for 123 is 4 not 3. so for 123 the correct answer is 4. min base for 123 is 4 not 3. so for 123 the correct answer is 4. Thank u so much... ^_^ |
| What is for test 28? | Vitaliy Karelin | 1871. Сейсмические волны | 8 дек 2015 23:27 | 8 |
I had wa28 when in dfs-search visited each string ony once, but we must visit strings more than once if coming to this person post became shorter. So Dijkstra looks like is needed. I used many dfs call from v=1 until stabilization("seismic waves from v=1") I use bfs but I also get WA 28. You are using standard bfs, when once formed vertex skipped after, but in this problem we must do processing of each event of vertex echivement on subject of string length. This test help me to solv WA28 10 0000000000000000000000000 2 444444444444444444444444 777777 11111111111111111111111 3 55 777777 8888 22222222 3 11111111111111111111111 444444444444444444444444 8888 3333 1 444444444444444444444444 444444444444444444444444 3 2 55 8888 55 3 3333 444444444444444444444444 6 6 2 22222222 444444444444444444444444 777777 3 444444444444444444444444 6 55 8888 3 11111111111111111111111 22222222 777777 999999999999999999999999 2 444444444444444444444444 55 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX answer 9 0000000000000000000000000 22222222 3333 444444444444444444444444 55 6 777777 11111111111111111111111 8888 Please note that falicos's test is incorrect; the line "444444444444444444444444 3 2 55 8888" implies there is a user named "2", which is not specified by the input and hence illegal. If you remove the "3" from that line you get legally formatted input with the given answer correct. If you interpret the above test to mean there is a user named "2" with no followers, the answer would be 10 0000000000000000000000000 11111111111111111111111 2 22222222 3333 444444444444444444444444 55 6 777777 8888 |
| all who got wa on 5 | azizulhakim.f | 1029. Министерство | 8 дек 2015 11:52 | 1 |
i also got wa on 5 and then found out i considered room and floor both can be at most 100. but problem says floor is 100 and room can be at most 500. |
| What is the kind of 1st test? | itanium | 2054. Астрономия | 7 дек 2015 16:26 | 1 |
My answers are fully identical to the given one. But I have WA#1. Maybe, are there some format-specified features? |
| if you have WA10 | szatkus | 1642. Одномерный лабиринт | 7 дек 2015 13:36 | 6 |
Edited by author 05.09.2010 15:36 Edited by author 22.09.2012 19:16 Edited by author 22.09.2012 19:16 Thanks very much... It's really help me. |
| Could | Skatova Elena | 1683. Холодильник | 6 дек 2015 17:09 | 1 |
Could Skatova Elena 6 дек 2015 17:09 Why are not correct 12 4 6 3 1 1 |
| Some tests | Felix_Mate | 1574. Математики и скобки | 5 дек 2015 17:44 | 1 |
1) (())(())(()) =>3 2) (())(()))))(() =>0 3) )))(()(()))((( =>2 4) )))))((()))))((((((( =>1 5) )()()()()()()()(())( =>9 6) ))(()( =>1 |
| if WA28 | gamepro | 1346. Интервалы монотонности | 5 дек 2015 12:02 | 1 |
|
| Why WA#12? | Accelarator | 1741. Монстр общения | 4 дек 2015 18:52 | 1 |
|
| WA 13..Is it a precision problem? | maksay | 1331. Владислава | 4 дек 2015 00:32 | 3 |
I get WA 13 again and again and I can not find a mistake. My main logic looks like this: for(j=0;j<n;j++) {l=(x[j]-X)*(x[j]-X)+(y[j]-Y)*(y[j]-Y)+(z[j]-Z)*(z[j]-Z); if (l-D<1e-10) D=l;} printf("%0.6f\n",acos((2-D)/2.0)*r); I believe it is correct..So can anybody help me with finding a bug, please? Does anyone have a same problem? I had exactly this kind of problem. WA13. then I wrote: double tmp= (2 - minL)/2.0; tmp-=0.00000000001; if (tmp<-1) tmp=-1; return r*Math.acos(tmp); and AC. It is problem with precision, of course. |
| WA4 | mad_ded | 2024. Время приключений | 3 дек 2015 16:48 | 1 |
WA4 mad_ded 3 дек 2015 16:48 Please, somebody, give the 4th test |