0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

lv5の災害警報が出たので避難して、ABCの精進をした

0
Last updated at Posted at 2026-09-07

本文

9/7 12:30にlv.5 土砂災害警報が出たので、避難しました。親は避難するのがめんどくさいようなので、家族の中で避難したのは僕一人です。寂しい。で、寂しくて暇だったのでシメジシミュレーションとか海辺のカフカなどを読んでいたのですが、突然論理的思考をする問題を解きたくなったので、いーはちさんの競プロ100問精選の問題の一つを解きました。
問題はこれです。
https://atcoder.jp/contests/abc145/tasks/abc145_c
順列全探索の問題ですね。pythonではdictという[0, 1]という座標が入った配列を二つ用意すれば距離が出せる素晴らしい関数があるので、有効活用して解きました。乙。
提出コード -> https://atcoder.jp/contests/abc145/submissions/79054344

まとめ

ノートパソコンを持っておくと災害の時でも競技プログラミングはできます。不謹慎ですが試してみてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?