Блог пользователя chokudai

Автор chokudai, история, 4 года назад, По-английски

We will hold Panasonic Programming Contest 2022(AtCoder Beginner Contest 251).

The point values will be 100-200-300-400-500-500-600-600.

  • Проголосовать: нравится
  • +75
  • Проголосовать: не нравится

»
4 года назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

For problem D I represent number in 100-nary ($$$A_2 * 100^2 + A_1 * 100^1 + A_0 * 100^0$$$ for $$$0 \leq A_0, A_1, A_2 \leq 99$$$, and $$$10^6$$$ itself). Therefore we only need $$$3 * 99 + 1$$$ distinct numbers to represent all numbers within $$$10^6$$$.

»
4 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Took 10 min to solve E as opposed to ~70 min for D. D > E

»
4 года назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

Thanks for the contest!! Problems were nice. (especially problems D and F)

»
4 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Problem D is really an interesting problem,isn't it?

»
4 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Thanks for problem B has a test with answer > max(w) :)) I spam problem B to guess the arrray :))

»
4 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

ABCs are becoming more and more challenging since the last 2 contests.

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The second most difficult D that I participated at ABC (best one is ABC 210 D)

»
4 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Problem D is somehow quite surprising! Thanks to the writers for providing such a nice problem. It gives me another way to think about the construction of integers. I think, in general, if the maximum integer has n digits, and we divide them into m groups, then the upper bound may be about m*10^(n/m). For this problem, n=6 and m=3 and this is how "300" comes out. It really took me a long time to find out this approach.

Problem E is about dp and F is about dfs/bfs, which is very nice as well. I am really lucky that at first sight, I have recogonized the correct solution, and I could seldom solve both E and F within the contest, but this time I made it.

»
4 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

For B, I think "at most 3" means: n can only be represented by the sum of <=3 weights. If it can be obtained from >=4 weights, it is not a good integer. Then i didn't solve it during the contest.

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can anyone explain E?

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

E was very similar to recent contest — AtCoder Beginner 247 F

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

For problem G, I try to find the largest and smallest length of intercept (X or Y intercept whichever is smaller) of a particular side among all polygons. Then line passing through the query point (a, b) must have intercept not lying in the range [smallest, largest] and must lie in one of the polygon. Do this for all n sides.

The problem with this is intercept if stored as double lead to floating point issue, and if stored as a rational number will lead to overflow of long long. What can I do in this case? Some testcases are showing TLE too.

submission

I understood the japanese editorial given in atcoder, which is actually very nice and simple!