kwm_t

kwm_tのメモ

2022-03-21から1日間の記事一覧

Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round)

ABCと丸かぶりしていたため不参加 ■A. Maximum Cake Tastiness 好きな二つを隣接できるので、最大値と二番目のものの和 ■B. Prefix Removals まとめて消さずに一文字ずつ消せばいい。 ■C. Alice and the Cake 初期状態からシミュレーションを行う。 multiset…

ABC244

result:oooooo-- rateing:1875->1874 ■A - Last Letter cout ■B - Go Straight and Turn Right 現在地点のx,yとmode(向き)を持つ modeはmod4で考えbfsで使うようなdxdyを用意しておく ■C - Yamanote Line Game インタラクティブ?! O(n^2)が間に合うので愚…