| Show all threads Hide all threads Show all messages Hide all messages |
| 1532 some test | svr | 1532. Lost in Translation | 5 Mar 2007 03:12 | 2 |
What an answer for the test: 2 abcde bcdeh I think: 2 abcde bcdeh |
| 1535 Proof? | svr | 1535. The Hobbit or There and Back Again | 4 Mar 2007 22:55 | 2 |
Simple algorithm but hard proof? How to prove that some construction in this problem is optimal? For minimal permutation must be: (p[i] - p[i+1]) * (p[i-1] - p[i+2]) < 0 |
| answer 1 | ExPerT | 1532. Lost in Translation | 4 Mar 2007 22:19 | 2 |
When the answer will be 1? |
| What is test 4? | ExPerT | 1532. Lost in Translation | 4 Mar 2007 21:45 | 1 |
My prog has WA#4 But I do not understend why. Help me! Give some test GL ;) |
| C# Crash | Mykola [Lviv NU] | 1539. Intelligence Data | 4 Mar 2007 20:18 | 2 |
C# Crash Mykola [Lviv NU] 3 Mar 2007 14:13 How could i read double without crash? I use double.Parse(Console.ReadLine()); |
| Give me some ideas..please! | realvan1 | 1407. One-two, One-two | 4 Mar 2007 20:09 | 2 |
please send me solution of this problem without big numbers on my mail gsaghinadze@yahoo.com |
| 1532 specifics | svr | 1532. Lost in Translation | 4 Mar 2007 17:01 | 1 |
I thihk that the problem has interesting feature. Relation in it is tolerance and not an order , therefore ordered structures:trees,sets,dictionaries unapplicable. |
| Who translate me this problems | Филиппов Илья (УЛ) | 1010. Discrete Function | 4 Mar 2007 04:09 | 2 |
Send me your mail to kuzkzDOGrambler.ru, theme "task1010" , and I`ll send you the translation. |
| WA#6 | Izual | 1022. Genealogical Tree | 4 Mar 2007 00:49 | 1 |
WA#6 Izual 4 Mar 2007 00:49 Sorry for poor english... I think that this code is true (but it's not topsort!): const INF=2000000000; var a : array [1..100] of integer; n,i,j,now,k,min : integer; begin read(n); for i:=1 to n do a[i]:=i; for i:=1 to n do begin read(k); min:=INF; while k<>0 do begin for j:=1 to n do if (a[j]=k) and (min>j) then min:=j; read(k); end; if min<>INF then begin for j:=1 to n do if a[j]=i then now:=j; if now>min then begin for j:=now downto min+1 do a[j]:=a[j-1]; a[min]:=i; end; end; end; write(a[1]); for i:=2 to n do write(' ',a[i]); end. May you give me some bad for my algorithm tests? Thanks for your attention. Edited by author 04.03.2007 00:54 Edited by author 04.03.2007 00:55 |
| Why problem's from contest are not added to the problem set??? | Roma Labish[Lviv NU] | | 3 Mar 2007 23:54 | 3 |
|
| How to speed up? | Fyodor Menshikov | 1254. Die Hard | 3 Mar 2007 23:09 | 1 |
I have solved this problem is Java, by now it is the only solution in this not fast language. :-) My solution was rather advanced, real arithmetics only on output, but it used almost all given time 4.75 / 5.00 s. Then I saw statistics of this problem. There are solutions that work much less than 1s. Is it advantage of fast C++ compiler, is it advantage of hand-written data structures (I used standard PriorityQueue) or is algorithm used much more advanced than mine? Could anyone explain optimizations of really (<1s) fast solution? |
| Когда задачи из прошедшего контеста выложат в общий архив? (-) | Dart MirzMan C++ Edition (Mirzoyan Alexey, Rybinsk SAAT) | | 3 Mar 2007 20:50 | 2 |
Yup, I also want to have a chance to submit them, because I'm mad at myself, 5 min after the contest I had 2 ( probably solved ) problems |
| what about this test | Todor Tsonkov | 1532. Lost in Translation | 3 Mar 2007 19:29 | 4 |
3 aaab acaa bcba What is the answer? I think the right answer is 3 aaab acaa bcba I think it could bi 2 or 1 because 2 aaab bcba and one if we choose 1 acaa there are exactly 2 diferences My AC-program says 3 aaab acaa bcba GL! |
| F. Maybe someone tell me. How I can done it problem without TL | Roma СЗШ№98 | | 3 Mar 2007 18:44 | 3 |
#include <iostream> using namespace std; struct node { int item; node *l; node *r; node():item(2),l(0),r(0){}; }; typedef node *link; int sum; void buildtree(link a,int k) { int t = a->item; if(a->l == NULL) { a->l = new node; a->l->item = t+1; if(t+1 == k)sum++; if(t+1 > k)return; a->l->r = a->l->l = NULL; } else buildtree(a->l,k); if(a->r == NULL) { a->r = new node; a->r->item =t*2; if(t*2 == k)sum++; a->r->l = a->r->r = NULL; } else buildtree(a->r,k);
buildtree(a->l,k); buildtree(a->r,k); } int main() { link a = new node; int n,p; cin >> n >> p; buildtree(a,n); cout << sum%p; return 0; } Edited by author 03.03.2007 18:12 Damn!!! I had done it just think 5 minutes after your post. Why so unlucky day?:( |
| what should be the answer for 1 10 | shilp | 1537. Ents | 3 Mar 2007 18:25 | 2 |
it should be 0... am i correct? |
| who have WA #18 in problem G, try this test! | Arthur | | 3 Mar 2007 18:14 | 1 |
9 -100 -100 -100 100 100 -100 100 100 0 -1 1 -1 1 1 -1 1 -1 -1 Answer YES 5 6 7 8 9! |
| Can't pass the second test | Kai Wang | 1532. Lost in Translation | 3 Mar 2007 16:55 | 1 |
what's the containt of the second test Edited by author 03.03.2007 17:00 |
| B Fat Hobbits | Narek Saribekyan | | 3 Mar 2007 16:49 | 1 |
Does all solutions acceptable? |
| A: Timelimit for Java | Jedi Knight | | 3 Mar 2007 16:33 | 3 |
Timelimit for java is 4.0 seconds, like c++. why? Edited by author 03.03.2007 16:08 The same question. AC solutions writen in C++ run 2-3 second in max test cases, while Java too slower to pass all tests in TL. Have a Judge team java solution passing all tests without TL? Jury has the java solution passing all tests |
| Can you verify the test data or the special judge? | Yiming Li | 1541. Chase | 3 Mar 2007 16:32 | 1 |
I think at least one of them is incorrect. |