| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Learn something new | ----- HÀ LINH ----- | 1022. Генеалогическое дерево | 28 мар 2015 22:51 | 1 |
|
| Can't understand statement | Eternal | 1109. Конференция | 28 мар 2015 01:02 | 2 |
Pls tell me what does author of this problem mean.. If all delegates are in different rooms then we can't use less than 4 connections to achieve the goal in sample input. What 3 connections can we use to do it? Do we need all M pairs to be in answer? I still can't solve it because statement is too loose for me. The line "every connection is made between people that can negotiate" actually means "a connection can only be made between two people that can negotiate". |
| Please give me tests. I always get WA #3 | Pavel Nikolov | 1209. 1, 10, 100, 1000... | 27 мар 2015 18:30 | 2 |
Please give me tests. Always WA #3. I'm writing in Go and using float64 for the numbers. maybe use long long,then you will get it. |
| Haha. I'll AC this problem :D | homealone1 | 1120. Сумма последовательных чисел | 27 мар 2015 11:56 | 1 |
O(sqrt(2 * N)) I have: A = (2 * N - P * P + P ) / ( 2 * P ) and P = [1, 2, 3, ..., sqrt(2 * N) + 3] :D I got AC ... |
| What is TEST 2? | bluestar | 1133. Последовательность Фибоначчи | 26 мар 2015 14:49 | 3 |
Cleared the fault. But now WA 16. Cleared the fault. But now WA 16. Using C++. Is it a problem due to using long double? |
| If you have WA6 or WA7 | Evgeny Shulgin | 1431. Сертификаты | 25 мар 2015 16:26 | 1 |
See this test: 6 2 2 2 3 3 3 Bad answer: 5 Good answer: 3 |
| Only 0.031s | pperm | 1425. Ферзь 2 | 25 мар 2015 13:11 | 3 |
Maybe new problem with increase S,K) 5 500 250 250 250 250 250 ------------------- 22288580 I'm curious how do you solve this problem so fast, could you give me some hint?? or send you code to my email:qizichao@gmail.com THX I managed to reach the same time, but only once :) |
| To admins - ruby performance issue | Vladimir Chervanev | 1211. Круговая порука | 25 мар 2015 09:24 | 1 |
I've sent the same solution using c++ and ruby - and ruby's version works 8 times slower than c++ solution and hardly passes TL (however all solutions were accepted, working time 0,125 vs 0,984 sec). I hope it might be caused by the old interpreter's version - can we use any newer version? |
| What's wrong if you got WA 10? | LucAbalo | 1990. Гонки на карах | 25 мар 2015 03:57 | 1 |
|
| WA #59 | Nik | 1635. Мнемоника и палиндромы | 24 мар 2015 20:32 | 1 |
|
| КАК читать пробелы в C++ | And IV | 1094. Дисплей | 23 мар 2015 21:18 | 5 |
int a = getc(stdin); read by simbol Before reading of spaces you must read rules of webboard! Speak in English! char ch; while(cin.get(ch)) { } можно вводить строку с пробелами целиком для string s; getline(cin, s); можно вводить символ char ch; ch = getchar(); эта штука позволяет вводить не только пробелы, но и символы перевода строк и прочее. в основном, пользуюсь этими двумя способами. |
| Does the last test taken into account for big bang?? | Anupam Ghosh, Wipro Technologies | 1925. О заслуге британских учёных | 22 мар 2015 20:24 | 4 |
the problem says " Moreover, they check only that the sum of all numbers entered since the last test matches the expected one." Thus should the new number entered in the test to check whether there is a big bang or not? If we have to take into account last input i.e. k value the the problem statement is incorrect. Please could someone explain this. Finally AC! understood the problem now. I wa#4, plz explain the problem for me Finally AC! understood the problem now. Can you give explanation?, please! |
| Explain me please wtf test #3 | Alexey Prokopchuk | 1020. Ниточка | 22 мар 2015 17:57 | 6 |
Edited by author 10.09.2011 18:56 Edited by author 26.02.2015 18:22 Edited by author 26.02.2015 18:23 If your program fails at tests #2, #3 check if it work correct for N = 1, 2. Edited by author 22.03.2015 17:58 |
| wa#4 | koyot | 1607. Такси | 22 мар 2015 16:59 | 12 |
wa#4 koyot 25 май 2008 20:39 here's my text: program Project2; var a,b,c,d:longint; begin readln (a,b,c,d); while c>a do begin a:=a+b; c:=c-d; end; if c=a+b then writeln (c) else writeln (a);
end. what's the problem??? help me please Re: wa#4 ACM.Krupko_Victor[Ivanovo SPU] 25 май 2008 22:03 thanks but now wa is #6 can't understand what ellse I've missed. Re: wa#4 ACM.Krupko_Victor[Ivanovo SPU] 26 май 2008 16:03 program Project2; var a,b,c,d:longint; begin readln (a,b,c,d); if c<a+b then writeln (c) else begin while c>a do begin a:=a+b; c:=c-d; end; writeln (a); end;
end. If a>c in the beginning then answer is a not c. Also check whether a>c after adding b each time. Here is correct code var a,b,c,d:integer; begin Readln(a,b,c,d); While a<=c do begin a:=a+b; if a>c then a:=c; c:=c-d; end; Write(a); end. Edited by author 09.11.2009 14:56 4 3 6 1 correct answer is 7 Re: wa#4 Kiril Kafadarov - new 24 апр 2009 23:59 WHY??? Petr offers 4 Taxi says 6 Petr won't increase because 4+3>6 => the answer is 7 correct answer is 6! Read the task carefully!! Re: wa#4 mr.sanatbek_94 22 мар 2015 16:59 No correct answer must be 6. Because, Peter offer: 4 but when you add 3 it will be 7>6 in this case a must be equal 6. Beacause driver satisfy 6 money. In this case put this condition to your iterator: if(a>c) a=c; |
| Problem in Python | The_Unseen | 1290. Саботаж | 22 мар 2015 12:17 | 1 |
I have Python 3.4.3 on my PC and when I run the program, this happens: input: 3 4 5 3 output: 5 4 3 I am certain that is the correct answer, but the judge says that it is incorrect |
| Hint | lakerka | 1028. Звёзды | 22 мар 2015 03:34 | 1 |
Hint lakerka 22 мар 2015 03:34 Ordering of start can be exploited to find solution. Edited by author 22.03.2015 03:35 |
| Why we can't view other authors solutions after solving a problem? | lakerka | | 22 мар 2015 03:27 | 1 |
Viewing other authors solutions have many benefits for viewer: - Learning clean coding style. - Learning new ways to solve the problem. - Learning tricks from people who solved the problem using similar idea. - Checking if tests are weak by exploring weaknesses in other people code. |
| Momory limit! | kerpoo | 2034. Корованы | 21 мар 2015 14:18 | 1 |
The memory limit is terrible! so small! Increase it plz!!! Edited by author 21.03.2015 14:43 |
| Bad tests! | Vlad Veselov | 1150. Номера страниц | 20 мар 2015 23:02 | 2 |
My program works wrong when N = 10^K, but gets AC! Please add test with such N. To Admins: my AC program gives wrong answers for 105, 20087. Please add these numbers to tests. |
| WA#3 | Kamaldinov Dmitry | 1207. Медиана на плоскости | 20 мар 2015 21:52 | 1 |
WA#3 Kamaldinov Dmitry 20 мар 2015 21:52 |