| Show all threads Hide all threads Show all messages Hide all messages |
| Any ideas what test #17 is? | ToadMonster | 1306. Sequence Median | 28 Mar 2016 15:24 | 3 |
Lost ac. WA 17 Looks like it isn't "n<=0", it isn't about integer overflow during even-length sequence overflow calculation. Edit: oh alright, congratulations. Edited by author 28.03.2016 16:15 Thanks, finally got AC. Was childish error in checking if N is odd or even. |
| Pythion IDE | whatsmyname | | 28 Mar 2016 03:07 | 1 |
Hi , What IDE or Editor or Online Interpreter do you guys use for Python? Please help! Thanks in advance |
| Constraints | Alex Danilyuk [Dandelion] | 1834. Tennis Racket | 28 Mar 2016 01:32 | 1 |
Constraints Alex Danilyuk [Dandelion] 28 Mar 2016 01:32 Why constraints are so small? |
| I solved, but I want know how solve at 0.015 sec? | __Andrewy__ | 2032. Conspiracy Theory and Rebranding | 27 Mar 2016 21:21 | 1 |
My algo is O(max(a,b,c)). |
| May I regard "fire" as making the straw height INF? | Ade | 2075. Take care of your eyebrows! | 27 Mar 2016 15:00 | 3 |
I always WA#2 Edited by author 27.02.2016 15:28 Edited by author 27.02.2016 15:30 Yes you can, in practice it will be max value of type used for storing straw height. |
| What's test 2? Can anyone help me? | TFYS | 2075. Take care of your eyebrows! | 27 Mar 2016 15:00 | 1 |
|
| alphabet | Wroclaw Smurfs | 2059. Not common palindromes | 27 Mar 2016 13:26 | 2 |
alphabet Wroclaw Smurfs 11 Jul 2015 14:01 Do strings consist of only lower-case letters of latin alphabet ? |
| Problem 1306 "Sequence Median" has been rejudged (+) | Sandro (USU) | 1306. Sequence Median | 27 Mar 2016 12:27 | 1 |
New tests were added. About 160 solutions got WA verdict on them. |
| WA #1 | João Pedro Franco | 1837. Isenbaev's Number | 27 Mar 2016 05:57 | 1 |
WA #1 João Pedro Franco 27 Mar 2016 05:57 Why? My solution is ok when i run with other tests that i have seen in this forum, but when i submit here, i get WA#1! Is there a problem about the output? Thanks. |
| Тест №8. Какой должен быть ответ? | Ananstasya | 1083. Factorials!!! | 27 Mar 2016 02:17 | 2 |
Тест №8. Какой должен быть ответ? Ни у кого нет тестов (кроме тех, кто создавал задачи и соответственно тесты). Мы можем только догадываться какой может быть тест № а , если смотреть на каком тесте валится наш код. В общем методом подбора |
| Why Compilation error? | vladi | 1025. Democracy in Danger | 27 Mar 2016 00:53 | 2 |
var t: real; n, k, i,j: integer; a:array [1..101] of integer; begin readln(n); for i := 1 to n do begin read(a[i]); end; for i:=1 to n do begin for j:=1 to n do begin if a[i]<a[j] then begin swap(a[i],a[j]); end; end; end;
for i:=1 to (n div 2)+1 do begin t:=t+((a[i] div 2)+1); end;
write(t); end. Pascal hasn't function swap. You should to write it yourself |
| AC | vtalgo16_vgubarev | 1438. Time Limit Exceeded | 26 Mar 2016 17:18 | 3 |
AC vtalgo16_vgubarev 9 Mar 2016 23:39 What was pretty interesting problem. Ty Edited by author 26.03.2016 17:18 If you have problems with test 10, ensure that you determine command type correctly. For instance: ifi = 10 printer = 20 gotoend = ifi + printer print gotoend Re: AC vtalgo16_vgubarev 26 Mar 2016 17:18 Tokenization with finite state machine Edited by author 26.03.2016 17:19 |
| Getting WA#2. Anybody got the test case? | szawinis | 1353. Milliard Vasya's Function | 26 Mar 2016 14:35 | 2 |
Hint: consider what allowed for first digit |
| Where is the error ?? 9 test fails . Pascal . Где ошибка?? 9 тест не проходит. Паскаль. | Andriy | 1636. Penalty Time | 26 Mar 2016 02:41 | 3 |
var t1,t2,i,k,q:integer; a:array [1..10000000] of integer; begin read(t1,t2); for i:=1 to 10 do read(a[i]); for i:=1 to 10 do begin if a[i]>0 then k:=k+a[i]; end; if t1<t2 then begin q:=(k*20)+t1; if q<=t2 then write('No chance.') else if q>t2 then write('Dirty debug :('); end else if t1>=t2 then begin write('No chance.'); end; end. Edited by author 01.11.2014 13:12 Edited by author 01.11.2014 13:12 Why SUCH BIG MASSIVE if 10 elements will be used What is "k" initial value? |
| Where a mistake? | Eugene | 1472. Martian Army | 25 Mar 2016 21:04 | 1 |
In example we have: 7 soldiers 1 - commander 2 - Ki = 1, Ci = 10 3 - Ki = 2, Ci = 5 4 - Ki = 2, Ci = 3 5 - Ki = 3, Ci = 1 6 - Ki = 4, Ci = 2 7 - Ki = 5, Ci = 3 It's right? Now, by a problem A1 === 1, A5 = A6 = A7 === 0. A2, A3 and A4 - may be either 0 or 1, yes? if A2 = 1 and A3 = 0 and A4 = 1 then profit = C7 * |A7 - A3| + C6 * |A6 - A3| + C5 * |A5 - A3| + C4 * |A4 - A2| + C3 * |A3 - A2| + C2 * |A2 - 1| = 3 * 0 + 2 * 0 + 1 * 0 + 3 * 0 + 5 * 1 + 10 * 0 = 5 Then answer min profit = 5. But in example is 8.00 I understood! 4 - it's soldier too and his A4 === 0 too Edited by author 25.03.2016 21:20 |
| Hahaha | IlushaMax | 1636. Penalty Time | 25 Mar 2016 21:02 | 1 |
Hahaha IlushaMax 25 Mar 2016 21:02 |
| WOW! AC 0.296, 237 KB O(n^4) works! Can U describe me O(n^3) solution? | exwRabbits_AlMag(VNTU) | 1146. Maximum Sum | 25 Mar 2016 19:13 | 6 |
I cann't believe it! Dynamika O(n^4). Can you give me some hints about algo O(n^3)? Is it Dynamika too? Thanks a lot! Edited by author 04.06.2006 14:57 So, your solution O(N^4) was accepted? I know O(N^4), and O(N^3) (but it requires O(N^3) memory). I can tell you the last. So, what's the O(n^3) solution ? Hint: Solve problem 1296 first. And use it's solution. Hint: Solve problem 1296 first. And use it's solution. Yeah... That's right. Thanks a lot for the hint.... It worked. |
| Я правильно понял условие? От нас ведь этого ждут? | Alexandr | 1149. Sinus Dances | 25 Mar 2016 13:33 | 3 |
Программа почему-то постоянно дает сбой на 2-ом тесте, но так как явные ошибки в коде не обнаружены, может просто я не понял условие? 0 1 sin(1)+1 2 (sin(1)+2)sin(1-sin(2))+1 3 ((sin(1)+3)sin(1-sin(2))+2)sin(1-sin(2+sin(3)))+1 4 (((sin(1)+4)sin(1-sin(2))+3)sin(1-sin(2+sin(3)))+2)sin(1-sin(2+sin(3-sin(4))))+1 5 ((((sin(1)+5)sin(1-sin(2))+4)sin(1-sin(2+sin(3)))+3)sin(1-sin(2+sin(3-sin(4))))+2)sin(1-sin(2+sin(3-sin(4+sin(5)))))+1 6 (((((sin(1)+6)sin(1-sin(2))+5)sin(1-sin(2+sin(3)))+4)sin(1-sin(2+sin(3-sin(4))))+3)sin(1-sin(2+sin(3-sin(4+sin(5)))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+1 7 ((((((sin(1)+7)sin(1-sin(2))+6)sin(1-sin(2+sin(3)))+5)sin(1-sin(2+sin(3-sin(4))))+4)sin(1-sin(2+sin(3-sin(4+sin(5)))))+3)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7)))))))+1 8 (((((((sin(1)+8)sin(1-sin(2))+7)sin(1-sin(2+sin(3)))+6)sin(1-sin(2+sin(3-sin(4))))+5)sin(1-sin(2+sin(3-sin(4+sin(5)))))+4)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+3)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7)))))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8))))))))+1 9 ((((((((sin(1)+9)sin(1-sin(2))+8)sin(1-sin(2+sin(3)))+7)sin(1-sin(2+sin(3-sin(4))))+6)sin(1-sin(2+sin(3-sin(4+sin(5)))))+5)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+4)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7)))))))+3)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8))))))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9)))))))))+1 10 (((((((((sin(1)+10)sin(1-sin(2))+9)sin(1-sin(2+sin(3)))+8)sin(1-sin(2+sin(3-sin(4))))+7)sin(1-sin(2+sin(3-sin(4+sin(5)))))+6)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+5)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7)))))))+4)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8))))))))+3)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9)))))))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9-sin(10))))))))))+1 Блин. Все понял. Очень, очень и еще раз очень глупая ошибка. Edited by author 03.02.2016 00:55 |
| HELP!!! | SanaKomissarova | 1910. Titan Ruins: Hidden Entrance | 25 Mar 2016 10:40 | 1 |
HELP!!! SanaKomissarova 25 Mar 2016 10:40 |
| wa4 is feb (+) | ASK | 1201. Which Day Is It? | 25 Mar 2016 03:53 | 4 |
7 2 2000 mon......[.7]..14...21...28 tue...1....8...15...22...29 wed...2....9...16...23..... thu...3...10...17...24..... fri...4...11...18...25..... sat...5...12...19...26..... sun...6...13...20...27..... btw, to turn ' ' into '.', one can use sed 's/ /./g' You is good man! Thank you! Edited by author 02.09.2011 04:30 i have one to one answer, but anyway WA4, and only from C++, C# is fine... Oh... my bad, for 17 2 2000 was wrong by 1 symbol |