### rng_58's blog

By rng_58, history, 3 years ago,

AtCoder Grand Contest 014 will be held on Saturday (time). The writer is yutaka1999.

Contest Announcement

The point values are 300 — 500 — 700 — 900 — 1400 — 2400. Note that the contest duration is unusual (130 minutes).

Let's discuss problems after the contest.

• +140

By rng_58, history, 3 years ago,

• +52

By rng_58, history, 3 years ago,

Let's discuss problems.

B is very nice. Until the end of the contest, I thought it was a marathon task. Then yutaka1999 told me the following: for an odd prime p, a[p] = 2 - p%4.

And I like geometry tasks like J.

• +40

By rng_58, history, 4 years ago,

There are lots of important tournaments in this season, and we moved some AtCoder contests to avoid collision. Please check https://atcoder.jp/.

We'll add more ARC/ABCs in May.

• +45

By rng_58, history, 4 years ago,

AtCoder Grand Contest 013 will be held on Saturday (time). The writer is maroonrk.

Contest Announcement

The point values are 300 — 500 — 700 — 900 — 1600 — 2000. Note that the contest duration is unusual (150 minutes).

Let's discuss problems after the contest.

• +69

By rng_58, history, 4 years ago,

AtCoder Grand Contest 012 will be held on Saturday (time). The writer is camypaper.

Contest Announcement

The point values are 300 — 700(200) — 1000 — 1000 — 1000 — 2000.

Let's discuss problems after the contest.

• +115

By rng_58, history, 4 years ago,

Let's discuss problems.

Does anyone have an idea for D?

• +28

By rng_58, history, 4 years ago,

There will be ARC 070 this Saturday, and interactive problems may be used there.

You can try an example of interactive problem on AtCoder here: https://practice.contest.atcoder.jp/tasks/practice_2

Here is my solution for 100 points:

#include <fstream>
#include <string>

using namespace std;

int main(void){
int N,Q,i,j;

scanf("%d%d", &N, &Q);

string s;
for(i=0;i<N;i++) s += (char)('A' + i);

for(i=0;i<N;i++) for(j=0;j<N-1;j++){
printf("? %c %c\n", s[j], s[j+1]);
fflush(stdout);
char ans;
scanf(" %c", &ans);
if(ans == '>') swap(s[j], s[j+1]);
}

printf("! %s\n", s.c_str());
fflush(stdout);

return 0;
}


• +74

By rng_58, history, 4 years ago,

AtCoder Grand Contest 011 will be held on Sunday (time). The writer is semiexp.

Contest Announcement

The point values are 300 — 400 — 800 — 900 — 1300 — 1700 (?).

Let's discuss problems after the contest.

• +103

By rng_58, history, 4 years ago,

Mujin Programming Challenge 2017 will be held on February 25th, 21:00 — 23:00 JST.

This is an online contest, and the top 30 people will be awarded prizes. The prize for the first place is \$2000.

Please check the official site for details.

You will be asked to fill a questionnaire when you register, so please register at least several minutes before the contest.

UPD: Point values are 900(500) — 1300(300) — 1300 — 1800. The full scores correspond to C, D, E, F in AGC, and partial scores correspond to B, A.

• +174

By rng_58, history, 4 years ago,

If you are a contestant, you can be relaxed and you can do anything (except for cheating). It's perfectly fine if you just guess the solution and submit it without knowing why (though personally I don't find it very beautiful). However, if you are a writer, you need to prove your solution. Here is the list of things you have to prove:

#### 1. Correctness.

Does your solution always return correct answers for all possible valid inputs?

• GOOD: Strict proof.
• BAD: My intuition tells that this is correct!
• BAD: I tried really hard to come up with counterexamples, but I couldn't. It must be correct!

#### 2. Time Complexity.

Does your solution always run in time for all possible valid inputs?

• GOOD: It's O(n2) and the constraints say n ≤ 1000. It should work.
• GOOD: For this problem we can prove that the slowest case is xxx. Experimentally, my solution works for the input xxx under the given TL.
• BAD: I tried really hard to generate various testcases, and my solution passed all cases!

#### 3. Randomized Algorithms.

Randomized algorithms are not hackish ways of solving problems. The writers should prove that for any valid input, the intended solution works correctly with very high probability. Please check here for an example of such proof. Another example is Rolling Hash: please check here. Note that, for example when we compute 105 hashes for strings of lengths 105, you need four hashes of prime modulo around 109, not two. (Practically two works but we can't prove that).

#### 4. Precision.

Especially in geometry problems, we sometimes use epsilons. However writers should be careful about the use of epsilons.

• GOOD: We know |b| and |d| are up to 104. Let's use eps = 10 - 9 for comparing two fractions a / b and c / d.
• BAD: Let's use eps = 10 - 9! (without reasons)

When the intended solution uses complicated double operations (like sqrt, trigonometry, log, lots of fractions, etc.) such analysis may be hard. In this case, one possible way is to add constraints like "even if we move a point by up to 10 - 3, the answer doesn't change".

• +367

By rng_58, history, 4 years ago,

• +91

By rng_58, history, 4 years ago,

AtCoder Grand Contest 010 will be held on Saturday (time). The writer is yutaka1999.

Contest Announcement

The point values are 300 — 500 — 700 — 1000 — 1600 — 1600.

Let's discuss problems after the contest.

• +106

By rng_58, history, 4 years ago,

• +140

By rng_58, history, 4 years ago,

• +89

By rng_58, history, 4 years ago,

UPD: The contest is at https://www.facebook.com/hackercup/round/1799632126966939/.

I barely qualified, so I do this again.

CF Handle Country
1. EgorRussia
2. scott_wuUnited States
3. RomaWhiteUkraine
4. PetrRussia
5. touristBelarus
6. jcccccccccccccccccccccsbChina
7. EryxPoland
8. ErrichtoPoland
9. qwerty787788Ukraine
10. dotoryaSouth Korea
11. TankEngineerChina
12. dreamoonTaiwan
13. peter50216Taiwan
14. Um_nikRussia
15. marcin_smuPoland
16. LhiCRussia
17. koosagaSouth Korea
18. KANRussia
19. RAVEmanUkraine
20. fhlasekCzech Republic
21. MerkurevRussia
22. -XraY-Russia
23. Al.CashUkraine
24. rng_58Japan
25. SergeyRogulenkoUnited States

• +194

By rng_58, history, 4 years ago,

AtCoder Grand Contest 009 will be held on Sunday (time). The writer is DEGwer.

Contest Announcement

The point values are 300 — 800 — 1100 — 1400 — 1600.

Note that the duration and the number of tasks is a bit unusual: 5 tasks in 2 hours.

Let's discuss problems after the contest.

• +83

By rng_58, history, 4 years ago,

• +111

By rng_58, history, 4 years ago,

Who is this?

• +75

By rng_58, history, 4 years ago,

Sorry for late announcement, I completely forgot it.

AtCoder Grand Contest 008 will start soon! https://agc008.contest.atcoder.jp/

• +106

By rng_58, history, 4 years ago,

Hello.

I'm planning to participate in a contest tonight. This is a team contest — and unlike ICPC, there is no limit to the number of computers. So, essentially this is an individual contest, and the score of a team is defined as the union of problems solved by the team members. I'm looking for my teammates in this contest.

The problem statements are provided only in Japanese. However, don't be afraid. If you become my teammate, I will describe the problems in English. (I may also solve a few problems myself, but I'm not sure).

The contest will start at https://www.timeanddate.com/worldclock/fixedtime.html?iso=20161224T22&p1=248, and the duration of the contest is 4 hours. If you are interested in it, please reply this post until 30 minutes before the contest (that is 80 minutes from now).

This is a non-serious contest, and I won't care the rank too much — the main purpose of this contest is to have fun. Some problems may be unusual.

• +109

By rng_58, history, 4 years ago,

The onsite events of CODE FESTIVAL 2016 will start soon. I'll keep posting commentaries here. All times written here are Japanese Standard Time, which is UTC+9 or Moscow Time + 6.

#### [25th, Friday 21:25]

As the name of the contest may suggest, there are lots of events, including five contests:

• CODE FESTIVAL 2016 Final

• CODE FESTIVAL 2016 Exhibition

• CODE FESTIVAL 2016 Elimination Tournament (3 rounds)

• CODE FESTIVAL 2016 Relay

• CODE FESTIVAL 2016 Grand Final

Some events are even overlapping so you have to choose one of them.

For those who can't attend the onsite events, there will be open contests. Please check the details at https://atcoder.jp/post/58 (here times are also written in JST). The Finals will start at Saturday 12:30, UTC+9.

#### [26th, Saturday 16:19]

Final Standings: https://cf16-final.contest.atcoder.jp/standings

The winner of Final is tourist. Congratulations!

The winner of Grand Final is W4yneb0t. Congratulations!

• +75

By rng_58, history, 4 years ago,

Semifinal 1 will start in 43 minutes.

TCO Blog (I'm the blog writer): http://tco16.topcoder.com/blog/

• +70

By rng_58, history, 4 years ago,

AtCoder Grand Contest 007 will be held on Saturday (time). The writer is doreamon.

Contest Announcement

The point values are 200 — 400 — 1000 — 1200 (600) — 1400 — 1500.

Let's discuss problems after the contest.

• +78

By rng_58, history, 4 years ago,

AtCoder Grand Contest 006 will be held on Saturday (time). The writer is sugim48.

Note that this time the contest duration is 130 minutes (20 minutes longer than usual).

Contest Announcement

The point values are 200 — 400 — 800 — 1300 — 1500 — 1700.

Let's discuss problems after the contest.