kwm_t

kwm_tのメモ

Codeforces Round 929 (Div. 3)

■A. Turtle Puzzle: Rearrange and Negate
Σabs(a)
■B. Turtle Math: Fast Three Task
一個消すかaddを2回するか
■C. Turtle Fingers: Count the Values of k
適当にやる
■D. Turtle Tenacity: Continual Mods
gcdで割って1が2つ以上あればng
■E. Turtle vs. Rabbit Race: Optimal Trainings
二分探索か三分探索
■F. Turtle Mission: Robot and the Earthquake
地震がないとすると
移動は、留まる、2つ下に移動、右下に移動の3択
留まるを適当に使って帳尻合わせ
■G. Turtle Magic: Royal Turtle Shell Pattern
実験すると高々8パターンなのがわかる。