Hello again. I hope nobody has forgotten to register?

In this contest we will try alpha of our chat - if something goes wrong, we turn it off: please do not panic:)

Links:

- Current standings
- Problems
- Contest winner: barsuk1

Problemsetters: Дмитрий Матов и Игорь Кудряшов. Thank them for their contributions.

I wish you to advance to the first division.

Mike Mirzayanov.

Ага, есть такая бага.

Проблема в том, что во второй ссылке темы не видно, первого собщения.

Вторые сообщения приходят на почту.

Тогда хорошо было бы видеть то, у чему привязан комментарий.

Спасибо за ответ.

Я не про редирект к топику из мыла.

Я про то, чтобы к странице комментариев сверху прикручивался оригинальный пост.

Кстати мы с тобой обсуждаем это не в той теме и в английской ветке к тому же...

can anyone tell me in problem b why we cant take m as integer and although m is given as integer

but if i am taking m as integer i am getting wrong answer. although in problem statement it is goven that m may have leading zeros but m is integer so no meaning of leading zeros.. so can any one tell me correct thing

00

0

wrong

4

004

wrong

you can accept

but y u r taking m as string m is given as integer in Question itself

i know wth string it is a accpeted submission .

but i m asking y we have to take m as string wen it is given as integer

for example

4

004

if the second line you put in by integer you will get 4,not 004

so your answer maybe "YES",bu it is wrong.so you have to put in by string

It doesn't make any sense logically... if his brother has give four as a random number.. he can say 004 as result his leading zeros doesn't make count... value is as minimal as possible...

sorry got it... using digits in number...he can't any new ones

sorry

the first case is

0

00

can anyone tell me in problem b why we cant take m as integer and although m is given as integer

but if i am taking m as integer i am getting wrong answer. although in problem statement it is goven that m may have leading zeros but m is integer so no meaning of leading zeros.. so can any one tell me correct thing

Leading zeros in M are very important, because they "take part" at constructing minimal number

for example: M = 0123. minimal number is 1023. If you escape leading zeros in reading M you lost Zeros in result.

first thing we dont have to find answer for m we have to fing=d minimal number for n .

so ur example is nt correct

i m asking here that what is importance of leading zeroes in an integer

mas an integer, there should not be any problems. Make sure you don't takenas an integer.I missed one such case in Problem B. Finally got ac just after the contest.

I could not find enough explanation about the standing page, in particular:

- what does the penalty represent ?

- for each problem, I finally understood that I have to click on the "+" or negative number but is there a specific penalty for each failed submission ?

(is there a forum for questions related to problems ? I am quite curious about case 9 for problem B - Correct Solution)

It was my fist participation and I really enjoy the web site and how it works, thanks a lot !!

about penaltyThere is no forum yet, only blog system.

@ADMIN pls make an statement about question b

in question m is an integer

but i got 3 wrong submission if i m taking m as integer

ans i got accepted wen i made m a string.

why wrong on taking m as integer...?/?

@ADMIN i dunno but wen taking m as 04 if one using int m then it will be 4 and answer will be "OK"

so there is no mistake in int m

correct me if i am wrong

For M = 4 answer is 4. But Valera's answer was 04.

Look at the M and Valera's answer as string(not as numbers)

there is no trick in c u jst have to do following things

for minimum;

just make fruits in order of number of occurences.

then make the most repeted fruit to least valuble.

like 3 orange and 2 banana and 1 apple

and prices are 4 5 6 7 8 9

then answer is 4*3 + 2*5 + 6*1

for maximum just opposite

9*3 + 8*2 +7*1

http://www.spoj.pl/problems/MDOLLS/

Quick Sort and Binary Search ?

Sorry for my bad english .

^{9}] for each value, and at most 5x10^{5 }such triples and we need to just find for each value, if there is a value greater than this.^{9}, so how are you using a BIT ?^{5.}^{5}] in worst case. Now, with Y as key and its corresponding Z as value, (Y,Z).. we can use BIT, to store the cumulative maximum. From this, we can query "what is maximum Z for Y in range [1,y]?" in O(log n) and also can update this table in O(log n). I hope you got rough idea of what we are doing.can you mail this for me?

with best regards.

mail:

masoud1459@yahoo.com

masoud.

how to solve 12 D. by segment tree or by interval trees or by fenwik tree ? how you solved it and what u did ?

why do we need to update BIT ?

wick tree. Now you can google it :)@ADMIN can you please give us input.output of problems ...

so that we can find bugg in our programs

Wrong answer on test 31.

It was my fault, that's why i know the case too. =)

btw, it would be nice to be able to link to the actual solution (I guess vihrov's links work only for him)

n"I calculated the time wrongly due to the timezone difference.

I wonder whether it will affect my rating. I really hope I can cancel my registration but it seems impossible to do so.

And I really hope that zero submissions will not affect the rating. (I don't know whether topcoder is like this due to the fact it doesn't support PASCAL).`

I think possibility to check contest time at timeanddate.com will be implemented, but later.

Time on that calendar is still Moscow Standard Time (UTC +4), so i had to add 4 hours on it.

Yep, you have to add this calendar to your account at google.com (there is a link in bottom right corner), after that you'll see all events in your time zone. :)

BTW, are you one of the administrators of this website?

"And note that with Google Calendar you can set SMS and e-mail notifications, in order to never miss a Codeforces round. Not only can you do this for a single event, but I also recommend you to go to the Settings menu and set automatic notifications for all events of this calendar."(Codeforces Calendar)

@ ADMIN whenever i got mail for new comments i got this url to .ru extension like

"http://codeforces.ru/comments/349#comment-4505"

so u can make it ".com" for english users......

codeforces.ru

codeforces.com

(and even!) www.codeforces.com

Besides they have different cookies and I need login every time to make some action (answer, give plus, etc).

how to solve problem E

i solve it ..