結果

問題 No.2678 Minmax Independent Set (Hack)
ユーザー 👑 hitonanodehitonanode
提出日時 2024-03-15 22:31:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-03-15 22:31:02
合計ジャッジ時間 632 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
11,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H = 1
last = 1

ret = []
for _ in range(2000):
    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)
for a, b in ret:
    print(a, b)
0