結果
問題 |
No.2678 Minmax Independent Set (Hack)
|
ユーザー |
![]() |
提出日時 | 2024-03-15 22:42:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-09-30 02:09:57 |
合計ジャッジ時間 | 619 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
H = 1 last = 1 ret = [] for _ in range(1001): ret.append((H, last + 1)) ret.append((last + 1, last + 2)) ret.append((last + 2, last + 3)) ret.append((last + 3, last + 4)) H = last + 2 last += 4 print(len(ret) + 1) print(*["{} {}".format(*x) for x in ret], sep="\n")