Common Board| Show all threads Hide all threads Show all messages Hide all messages | | why time limit??? | ghostfreak | 1053. Pinocchio | 26 Apr 2010 20:48 | 1 | i've got tl on tets 7 cannot you say why? i just calculate gcd of all numbers Edited by author 26.04.2010 21:02 Edited by author 26.04.2010 21:03 | | Different results with same code in linux (g++) and windows | stanko | 1177. Like Comparisons | 26 Apr 2010 20:01 | 1 | How is this possible? I get different results with same code and same test cases? Cheers! | | Time limet | Pascalius | 1131. Copying | 26 Apr 2010 10:02 | 2 | Help Edited by author 25.04.2010 21:50 Edited by author 25.04.2010 21:50 Of course You can't solve this in O(n). Limitations is to high. Just try to find out a O(1) solution! =) | | WHY WA#9??Can anyone help me?? | zhl | 1028. Stars | 26 Apr 2010 10:01 | 4 | program p1028; var s,l:array[0..16000] of longint; x,y,n,tot,i:longint; procedure ins(x,left,right:longint); var mid:longint; begin mid:=(left+right) div 2; if x>mid then begin inc(tot,s[mid]); ins(x,mid+1,right); end; if x=mid then begin inc(tot,s[mid]); inc(s[mid]); end; if x<mid then begin inc(s[mid]); ins(x,left,mid-1); end; end; begin readln(n); for i:=1 to n do begin readln(x,y); tot:=0; ins(x,0,32002); inc(l[tot]); end; for i:=0 to n-1 do writeln(l[i]); end. Thx a lot!!! Edited by author 17.08.2009 09:40 It solves with binary tree or sqrt-decomposition. | | This test can help you | Barsuk Alexey [Pskov] | 1125. Hopscotch | 25 Apr 2010 22:17 | 1 | 9 9 WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW WWWWWWWWW 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 correct answer WBWWBWWBW BWWWBWWWB WWWWBWWWW WWWWBWWWW BBBBBBBBB WWWWBWWWW WWWWBWWWW BWWWBWWWB WBWWBWWBW | | is '[%]' like '[%]'?? | AOY++ | 1177. Like Comparisons | 25 Apr 2010 00:16 | 4 | NO I have answers to all your questions :) 26 Feb 2002 11:59 '[%]' like '[%]' In the template [%] presents literally just '%' as single char. String however is literally is '[%]' And those obviously are not the same ;) | | Question | OpenGL | 1766. Humpty Dumpty | 24 Apr 2010 23:36 | 2 | What right answer on sample test data? 0.007142857143 on corners, 0.011904761905 on sides and 0.019047619048 on the center 7x7 square Edited by author 24.04.2010 23:37 | | 2 Admin: problems with checker | Baurzhan | 1160. Network | 24 Apr 2010 16:10 | 2 | After wa1 many times i submit programms that should got CE (i print some strings,not numbers) but got wa1. Also i print nothing - again wa1,but not CE. It's very strange. May be checker to this problem is incorrect? | | FOR ADMINS(+) | Виктор Крупко | 1195. Ouths and Crosses | 24 Apr 2010 13:41 | 3 | X## O#X XOO MY AC CODE SAY: DRAW (BUT IT CROSSES WIN) MAY BE IT WA11? Edited by author 22.03.2009 16:51 VERY THANKS! I'v got AC after your mess!) | | WA13? | Programmer | 1624. Go out of here! | 24 Apr 2010 03:53 | 1 | WA13? Programmer 24 Apr 2010 03:53 | | wa1 | Baurzhan | 1160. Network | 24 Apr 2010 02:24 | 1 | wa1 Baurzhan 24 Apr 2010 02:24 I submit prim's realization that got AC at olympiads.ru. Also i submitted kruskal's realization that got AC at some past contest. Why both AC programms can't pass test #1? can somebody give me tricky test cases? | | WA #12 | Abbas Mehrabian | 1421. Credit Operations | 23 Apr 2010 18:28 | 2 | WA #12 Abbas Mehrabian 18 Aug 2006 22:06 Hi! I used greedy, but I get WA on #12! Can somebody help me? Me 2...So,what's the matter? | | Question: Example test | Florin Pogocsan | 1199. Mouse | 23 Apr 2010 18:00 | 1 | Nevermind, I found my problem in the code. Edited by author 24.04.2010 02:55 | | why I was WA5,who can tell me what the test 5 like? | uuu | 1056. Centers of the Net | 21 Apr 2010 20:32 | 1 | | | To ADMINS: orphography mistake | bsu.mmf.team | 1365. Testing Calculator | 21 Apr 2010 11:49 | 2 | ...Выяснилось, то данный модуль был написан 8 лет назад, к первому Чемпионату Урала, и его исходные коды за это время успели потерятся... нужен мягкий знак в слове "потерятЬся" | | WA 5# | Gdp | 1072. Routing | 21 Apr 2010 09:17 | 1 | WA 5# Gdp 21 Apr 2010 09:17 It is my program. program sad; var tu:array[1..100,1..100] of int64; d,p:array[1..1000] of int64; f:array[1..1000] of boolean; k,pre,pree:array[1..1000] of int64; a:array[1..90,1..6,1..8] of int64; ii,jj,w,i,j,m,n,u,v,bit,l,r,t,q,sum,g,i1,i2,i3,i4,n1,n2,n3,n4:longint; c:char;s:string; function pd:boolean; var w:longint; begin for w:=1 to 4 do if a[i,j,w]<>a[ii,jj,w] then exit(false); exit(true); end; procedure spfa(s:longint); var i,j,k,h,t,x:longint; begin fillchar(f,sizeof(f),false); fillchar(p,sizeof(p),0); for i:=1 to n do d[i]:=maxlongint shr 1; f[s]:=true; t:=1; h:=0; d[s]:=0; p[t]:=s; while h<>t do begin h:=(h mod n)+1; x:=p[h]; f[x]:=false; for j:=1 to n do if (tu[x,j]<>0) and (d[x]+tu[x,j]<d[j]) then begin d[j]:=d[x]+tu[x,j]; if not f[j] then begin t:=(t mod n) +1; p[t]:=j; f[j]:=true; pre[j]:=x; end; end; end; end; begin readln(n); for i:=1 to n do begin readln(k[i]); for j:=1 to k[i] do begin readln(s); g:=pos('.',s);val(copy(s,1,g-1),i1);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),i2);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),i3);delete(s,1,g); g:=pos(' ',s);val(copy(s,1,g-1),i4);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n1);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n2);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n3);delete(s,1,g); val(s,n4); a[i,j,1]:=i1 and n1; a[i,j,2]:=i2 and n2; a[i,j,3]:=i3 and n3; a[i,j,4]:=i4 and n4; end; end; for i:=1 to n do for ii:=1 to n do for j:=1 to k[i] do for jj:=1 to k[ii] do begin if not pd then break; tu[i,ii]:=1; tu[ii,i]:=1; end; readln(l,r); spfa(l); q:=r; sum:=0; while q<>0 do begin inc(sum); pree[sum]:=q; q:=pre[q]; end; if (sum>1) and (sum<>0) then begin writeln('Yes'); for i:=sum downto 1 do write(pree[i],' '); end else write('No'); writeln; end. WA at 5# ~~ Help me~! | | WA1 | Samael500[It-Team] | 1047. Simple Calculations | 21 Apr 2010 02:03 | 1 | WA1 Samael500[It-Team] 21 Apr 2010 02:03 I found my stupid mistake! need have only one: #include <cmath> Edited by author 30.04.2010 02:30 | | to Admins | unlucky [Vologda SPU] | 1072. Routing | 20 Apr 2010 19:40 | 2 | to Admins unlucky [Vologda SPU] 15 Feb 2010 02:44 I think, that there was no adjustment to the "order of the computers" for output in problem "Output" paragraph. I think, that it was no difference between direct path and reverse path. So, for example code, that printed Yes 1 3 5 6 was Accepted, but code, that printed Yes 6 5 3 1 was rejected. | | Problem 1209 "1, 10, 100, 1000..." has been rejudged (+) | Sandro (USU) | 1209. 1, 10, 100, 1000... | 20 Apr 2010 12:12 | 1 | New tests were added. 196 authors lost AC after rejudge. | | How to solve this problem? | IGOR_Lviv NU | 1763. Expert Flea | 20 Apr 2010 00:15 | 4 | Edited by author 20.04.2010 21:24 Edited by author 20.04.2010 21:24 Edited by author 30.07.2010 20:32 |
|
|