|
|
Общий форумtry -3 ok answer is 1+0+(-1)+(-2)+(-3)=-5 Can sb send test 5 and ans? 1. \par marks end of paragraph, but \\par is not (it is command \\ followed by word `par'). 2. Carefully calculate number of backslashes (\). \\"" gives \\``'', but \\\"" gives \\\" \\ command is not described in the task, only \" is Обьясните подробней как штрафное время влияет на проигрыш/победу команды. Read the problem statements carefully 搞什么P东西打乱码火星文啊 In the very best case, the team can get the penalty time as less as many penalty submissions it did (each one adds 20 minutes). "Dirty debug :(" message means that if the team had no penalty submissions at all, it would be the first rated. Another words, it would have the penalty time less than "QXX" has at the moment. Good luck! SFMBE Edited by author 03.08.2011 20:09 Best solution - 0.015. How to improve? I do not use array. Only 5 vars - (3 integer and 2 longint) I use inc([longint], number) instead of [longint]:= [longint] + number; Edited by author 07.02.2008 18:14 my solution is also 0.031 and I used same "vars" as you and no array. my algo if O(N). and what is most interesting, one time the result was 0.015! after it i send same solution. it was 0.031 again. Edited by author 07.02.2008 18:15 I have 4 int vars, O(N) algo. I solved it 5 times already, and still (0.031,108). Useless. No more question. I read the text badly. Edited by author 23.03.2009 03:56 I got it too. Sorry for this post ^^ For anyone who can't understand this example: remember that the first number means the size of a sequence given, not the first its element! Edited by author 03.08.2011 16:16 Please tell me how stones jump, and what happens if there is another stone. Can I jump over two stones in one grid? Stone situated in grid (a;b), then it can move to grid (a+2;b) if it is empty and if there is stone in (a+1;b), stone in (a+1;b) will be taken away;it can move to grid (a;b+2) if it is empty and if there is stone in (a;b+1), stone in (a;b+1) will be taken away; and so on... P.S. My poor, poor English... Your understanding is right... But the discription of the problem is not clear enough. I really can't understand at first. Emm.. is the rectangle solid? That's not clear. oh, YES! This is brilliant data structure =) goood thing ) horrible code: #pragma comment(linker,"/stack:3000000") #include <iostream> int X[10100],n,k,r,h=1e9,g,x,i,j,l; int main(){ if(!j)for(i=n;i;X[i--]=0); if(!l&!j)std::cin>>n>>k; if(l<k){ std::cin>>x; for(i=x;i;r+=X[i],i-=i&-i); for(;x<=n;X[x]++,x+=x&-x); ++j==n?++l,(r<h?h=r,g=l:0),j=r=0:0; main(); } else std::cout<<g; } Edited by author 10.04.2011 19:41 it's the number of swaps in a bull sort. Edited by author 03.08.2011 02:27 In 1068 and 1785 problems to arise such cases. Edited by author 02.08.2011 23:23 Edited by author 02.08.2011 23:23 Is someone know input for the 4-th test? (My programm had crash) Is it possible to determine inputs? Are there exist resource&? In the 4-th test I have problem time limit exception. 5 0 4 5 1 0 1 0 5 3 0 3 0 Why output is: 2 4 5 3 1 not: 2 4 3 5 1 and i can't understand the WA in test#4 please explain me chunki 3 5ni farzandi Edited by author 08.07.2011 16:39 I got WA...could you help me? I hadn't check the testdata 12*12 empty grid...my code is ok...but I still stoped at test18... Edited by author 10.07.2010 12:48 Or use #pragma comment(linker, "/STACK:16777216") Please help me? why I have wa??? Because your solution is wrong! Probably arithmetic overflow or stack overflow. But why crash (stack_overflow)? My program shouldn't use so much memory! [code deleted] Edited by moderator 11.07.2006 23:07 You should manage your stack manually. if n = 1 -> res/(n-1) = res / 0?????????? No, from condition 2 <= N <= 50000 |
|
|