Hello,
Did you already notice that this Sunday it will be Internet-version of 2013-2014 ACM-ICPC, NEERC, Southern Subregional Contest? It will start on 07:00 (UTC).
The contest will be held in Gym. I invite teams mostly because the contest was designed as a team contest.
I'm sure this contest is a great way to train before coming regional (or subregional for some of you) ACM-ICPC contest.
Will this be the same as today's Timus?
Nope. On Timus was the quarterfinal of Eastern subregional of NEERC. Tomorrow will be the quarterfinal of South subregional of NEERC
No. They do other Subregional Contest.
How to solve problem B, F, K ?
Problem B: Move the camera lazily to the nearest good position in every step. You can find the nearest good position in each step by doing f.ex. binary search on the array C.
Problem F: You can write the solution of the expected value as such:
where .
and t[i] represents the time when i-th testcase will be processed.
Thanks for your reply. I have done the same thing for Problem B. Here is my submission: http://pastie.org/8434448
Getting WA on test #6 , can you tell me why ?
double low = pos[i] — 1.0*r; double hi = pos[i] + 1.0*r;
I think these are incorrect. You should use Pythagoras' theorem here.
r2 = 12 + D2 (where D is the distance you need to add/subtract from pos[i]).
damn !! my code was correct , just that was the issue. :(
Thanks.. :)
can you tell me what kind of test is #6 in B? this is my code. .
l=x[i]-sqrt(ra*ra-1); r=x[i]+sqrt(ra*ra+1);
shouldn't it be in both cases? :)
thanks friend :) accepted
It's interesting in problem L that : It is guaranteed that there will be no overow of the 32-bit signed integer type, so feel free to use type int (in C++ or Java) to store the number of dollars and shares.
but I use "int64" got ac ,"int" got WA...
Is it a evil trick?
I used int ( 32 bit signed) got AC. Maybe you have other problem.
Got same issue as you. Just changed my variables to long and got AC. Bizarre o_O
If it helps :
if(d - (inc * a) * p[i] >= 0){
This is the line where the overflow is happening for you, looks like for the test case 17(first one, at least), inc * a * p[i] is out of int range. I think most people have written the check
if(d/p[i] - inc * a >= 0 ) {
Got it,Thanks for the reply
Problem K : Wrong answer on test 9. Any Critical input please !!!
My code for problem H gets WA on testcase #55! Does anybody know that testcase or can spot my mistake? My code
For this case
5 <<<<><<<<
you got-1
, but the answer should beabcdeabcde
.Thanks! Fixed and Accepted:D
11/6 Finally got it. Sort of. It took about 80min to generate the answers for n=6, which I then hardcoded, so I'm wondering what the intended solution was.
============
EDIT: Well, I decided to test more for J, and I see that I clearly get things wrong, time to fix... (4 2 != 2 4)
I seem to be quite hasty in my conclusions.
============
I'm suspicious of the judge for problem J. I get WA on test case 10, and through testing the judge, this is the first case which relies on the modulus. I've changed the modulus and still get AC up to test case 10, so I suspect that the judge code used a different modulus than the problem statement.
Alternatively, it could be some small case that I get wrong regardless, but I've verified that my program correctly solves n=1, for any m, and perhaps also for n=2, any m.
I'm getting WA at test case 32 at problem I. Any help...
Each of a and b can be up to 5000, so you need to double the size of
s
. By the way, you’re missing areturn
keyword inoperator <
, but you don’t actually need that line anyway.Thanks a lot!!!
Is there any plan to organize Internet-version NEERC 2013?
It will be published as a training in Gym as soon as jury will publish tests.
Is there any editorial for this contest?