結果

問題 No.2678 Minmax Independent Set (Hack)
ユーザー 👑 rin204rin204
提出日時 2024-03-15 22:35:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 93,688 KB
最終ジャッジ日時 2024-03-15 22:35:47
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

E = []
n = 190000
x = 1
while len(E) < n:
    E.append((x, x + 1))
    E.append((x + 1, x + 2))
    E.append((x, x + 3))
    E.append((x + 3, x + 4))
    x += 4
E.append((x - 1, x + 1))
x += 1

n = x
print(n)
for u, v in E:
    print(u, v)
0