結果

問題 No.1880 Many Ways
ユーザー 👑 rin204rin204
提出日時 2022-03-18 22:07:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 68,224 KB
最終ジャッジ日時 2024-04-14 09:54:47
合計ジャッジ時間 16,300 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
66,596 KB
testcase_01 AC 56 ms
65,940 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = 128
A = int(input())
edges = []
for i in range(2, 50):
    for j in range(1, i):
        edges.append((j, i))
    if A >> (i - 2) & 1:
        edges.append((i, n))
print(n, len(edges))
for row in edges:
    print(*row)
0