daftcoder's blog

By daftcoder9 months ago, In Russian

Собственно, вопрос такой: можно ли решать эту задачу пропусканием второй строки по дереву первой? Убил весь вечер, переписал кучу квадратоподобных вариантов, но они даже не были верными.

P.S.: Как делать это, строя дерево для сконкатенированной строки, знаю.

Read more »

 
 
 
 

By daftcoder11 months ago, translation, In English

Once the Timus profile member's page was corrected, the script, that analysed solved problems and gave them complexity, in its current form was unable to work.

To edit the script needed an older version of the profile. But in Google's cache did not find any such page, but found something else...

http://acm.timus.ru/tester/ - tester by Vladimir Yakovlev. Someone may heard about that tester.

But then the fun things started...

Read more »

 
 
 
 
  • Vote: I like it  
  • +70
  • Vote: I do not like it  

By daftcoder12 months ago, translation, In English

This is the news for English-speaking users of CodeForces.

There is a project cforces.reformal.ru made by freopen where users can add their ideas and report bugs. Administration of the CodeForces look through reformal and add most popular features (prove: one, two).

Unfortunately the is only Russian interface. But I've translated ideas that have at least 30 votes.

Read more »

 
 
 
 
  • Vote: I like it  
  • +17
  • Vote: I do not like it  

By daftcoder12 months ago, In Russian

Для прохождения в Elimination Round 1 нужно попасть в первые 600 участников.

Уже открыта регистрация и продлится она до 19:55 по Москве (возможно до 19:57, но так рисковать я бы не стал).

За первые полчаса более 700 регистраций.

За первый час ~950 регистраций.

Полтора часа: ~1100 регистраций. Видимо активность спала.

Торопитесь! Лимит в 2000 регистраций может быть исчерпан раньше.

Read more »

 
 
 
 
  • Vote: I like it  
  • +2
  • Vote: I do not like it  

By daftcoder12 months ago, translation, In English

Tomorrow, 7th May 3am MSK 24-hours Google Code Jam Qualification Round starts.

Registration will be available until the end of the contest.

Advancing from the Qualification Round will require 25 points.


UPD. Round began.

Read more »

 
 
 
 
  • Vote: I like it  
  • +21
  • Vote: I do not like it  

By daftcoder12 months ago, translation, In English
There are lots of contests in May and many tournaments starts in this month.

Here is the calendar, where I accumulate some contest of this month.

link / iCal

It have default Moscow time zone, but after import to your calendar, all will be okay.

Also in Google Calendar for whole calendar and for every single event you can set reminders on email or by SMS (free).

Read more »

 
 
 
 
  • Vote: I like it  
  • +24
  • Vote: I do not like it  

By daftcoder14 months ago, In Russian
Поездки в Вологду всегда доставляют нам массу удовольствия: отличные задачи сбалансированных проблемсетов, хорошие участники, отсутствие оргвзноса и всего 4 часа в пути.

Этот год не был исключением. Команда Ярославля отправляется в Вологду на XIV Межвузовскую олимпиаду в пятый раз.

Read more »

 
 
 
 
  • Vote: I like it  
  • +13
  • Vote: I do not like it  

By daftcoder14 months ago, In Russian
У нас появились записи, не имеющие для общей публики особой информационной нагрузки, но ещё и мешающие сообществу.

Было вот такое предложение на reformal, предлагаю его расширить - сделать 3 вида блогпостов: публичные, личные и закрытые.

Read more »

 
 
 
 
  • Vote: I like it  
  • +25
  • Vote: I do not like it  

By daftcoder14 months ago, In English
If you write on Java and still don't have a good template with most of needed algorithms, I recommend you to pay attention to a template by Abrackadabra.

You can find his code on the standings page, finding him in a table, double-pressing to a cell of a problem and finally clicking on a submit id.

But I don't give a guaranties that all code is correct.

GL & HF ;-)

Read more »

 
 
 
 
  • Vote: I like it  
  • +2
  • Vote: I do not like it  

By daftcoder15 months ago, translation, In English
Problem 1. Sinking Ship.
The problem has lots of solutions. I will tell most simple which I saw.
Let's make structure {string,integer} (pair<string,int> in C++), we read the data into array of our structure, transforming rank to a priority (number). After that the necessary number of times equal to quantity of priorities (this problem - 4), we output those names from array which have the equal to cycle count priority.

Some solutions fell, who didn't consider indexes in sorting, i.e. used simply sort on a rank, instead of taking index in structure, or instead of stable_sort.

Problem 2. Settlers Training.
Let's make array A with size k+1 where Ai is a number of settlers with a rank i. After that, while exist a settler with rank lower k (A[k] not equally n), we model training activity. Finally we output the needed amount of coins.
It is necessary not to be mistaken only, in bypassing an array with ranks from left to right, though the test 2 saves us from this potential error.

Problem 3. Bulls and Cows.
We make an array with 10000 elements, mark all possible in this game number by ones. Then we eliminate these numbers by game rules for every of n input, i.e. we mark with zero the numbers from an array at which comparison with ai don't give numbers of bulls and cows bi and ci.
Finally if there is only one marked number - it's the answer, if there are several such numbers  - there is not enough information, if no one number is marked - the data is incorrect.

Problem 4. Dividing Island.
The main problem - to make areas connected.
It's possible to solve this problem so: we fill our island with a snake which moves through a column upwards-downwards and moves to a next column at its filling. Initial coordinate is (1,1) if A is even or B = 1, or (B, 1) if A is odd and B > 1.

Read more »

 
 
 
 

By daftcoder15 months ago, In Russian
Доброго времени суток, дамы и господа!

В преддверии приближающегося SRM 497 хочу продолжить рассказ о ТопКодере.

Расскажу о установке некоторого набора плагинов TopCoder'а и MS Visual Studio. Язык программирования: C++.

Read more »

 
 
 
 
  • Vote: I like it  
  • +17
  • Vote: I do not like it  

By daftcoder18 months ago, translation, In English

As you could notice there are some changes in rating graph.

For example with prompting on a point of a competition it is possible to see a place occupied with the participant, rating change and we can go to the table of results.

And what else do you want to see in that graph? :)

UPD: As for me...
1) Rank: 91 of 521
2) Solved: 2 of 5
3) Maybe somethink like http://codeforces.ru/contest/13/standings?place=91 or/and http://codeforces.ru/contest/33/standings?room=12

Read more »

 
 
 
 
  • Vote: I like it  
  • +18
  • Vote: I do not like it  

By daftcoder23 months ago, translation, In English
Onсe at three o'clock (MSK) in the morning, I have come on Codeforces and have seen such picture:

Couldn't stop not to make a screen picture.

Do you have any signs linked to competitions, favourite and unloved numbers?

Read more »

 
 
 
 
  • Vote: I like it  
  • +8
  • Vote: I do not like it  

By daftcoder23 months ago, In Russian
Раз уж я начал разговор о ЕГЭ, ...
Итак, поговорим о вопросах Жизни, Вселенной и Всего Такого.

Переписка двух людей в аське.
Ники изменены, цензура применена:

Read more »

 
 
 
 
  • Vote: I like it  
  • +1
  • Vote: I do not like it  

By daftcoder23 months ago, In Russian
Сюжет о BolgenOS, который был показан по телевизору.
Тема, созданная Денисом Поповым на ЛОРе.

for lulz: Наш ответ BolgenOS

P.S.: Не удивляйтесь, если люди вокруг начали говорить принципиально новые слова. Это всего лишь очередной интернет-мем.

Read more »

 
 
 
 
  • Vote: I like it  
  • -1
  • Vote: I do not like it  

By daftcoder2 years ago, In Russian

Привет, я dAFTc0d3r. Я хочу немного рассказать про то, как участвовать в соревнованиях TopCoder Algorithm.

Read more »

 
 
 
 
  • Vote: I like it  
  • +2
  • Vote: I do not like it  

By daftcoder2 years ago, In English
Based on NEERC 2009-2010.



We have met him suddenly, a pair of clocks before departure home.

P.S.: Every joke can have it's jest. ;)

Read more »

 
 
 
 
  • Vote: I like it  
  • +20
  • Vote: I do not like it  

By daftcoder2 years ago, translation, In English

The subject is old as the World. As the World of sports programming.

What algorithms should be known to the person (command) to have possibility to solve the most of problems?

I wish to hear Your opinions. 

Read more »

 
 
 
 
  • Vote: I like it  
  • +1
  • Vote: I do not like it  

By daftcoder2 years ago, In Russian

Биография ещё одного спортивного программиста.

 

Практически всё своё детство я провёл в Костроме, учился в костромской школе, общался со сверстниками и людьми постарше, увлекался футболом, математикой и ничем больше.

Read more »

 
 
 
 
  • Vote: I like it  
  • +12
  • Vote: I do not like it  

By daftcoder2 years ago, In English

Original:

 gif 5 KB

 jpg 25 KB

Brighter variants (jpg):

...if someone still uses them. =)

Read more »

 
 
 
 
  • Vote: I like it  
  • +16
  • Vote: I do not like it  

By daftcoder2 years ago, translation, In English

I watched the project in a month and this week I had a possibility to participate.

Many thanks MikeMirzayanov for the organisation of this project.

There are some offers concerning site improvements:

1) direct discussion with quoting

Discussion in the form of a tree happens rather inconveniently. The messages are posted nonlinear and it's sometimes difficult to watch updates in a huge topic. It seems to me consecutive answers with quoting possibility (in the form of the text and the link to a post) would be ideal.

2) source code viewing directly from the table

The question "And where I can see Peter's code?" appears frequently. It would be extremely useful to have possibility to watch the code directly from the table of competitions: when you press Ctrl + Click on a table cell you receive submit's queue. Clicking to the submit here would be very convenient for looking at initial code.

To facilitate code viewing of top's participants such thing will help here:

http://codeforces.com/contest/11/status/D?order=BY_ARRIVED_ASC

4) link to contest tutorials

There is no link (from contest page) on a post, containing problem's tutorials. In the absence of tutorials the link should make you offer to write tutorials.

5) nickname change possibility

Useful or not?

7) opportunity to subscript/unsubscript topic/someone's blog/whole forum

I'm really waiting for that.

8) login redirecting bug

9) recent actions bug

Dublicating messages on refresh.

10) delivery bug

11) "narrow screens" bug


Solved problems:

3) base of algorithms - Waiting for merging (and translating?) e-maxx and Codeforces.

6) rating graph - Implemented.

Thanks, fast ACes to you. :)

Read more »