結果

問題 No.1880 Many Ways
ユーザー Eki1009Eki1009
提出日時 2022-03-18 22:17:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 54,456 KB
最終ジャッジ日時 2024-04-14 10:08:47
合計ジャッジ時間 14,256 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,360 KB
testcase_01 AC 39 ms
53,436 KB
testcase_02 AC 39 ms
52,864 KB
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 #

a = int(input())
m = 40
n = m+2*(m-1)+1
E = []
for i in range(m-1):
  E.append((i,m+2*i))
  E.append((i,m+2*i+1))
  E.append((m+2*i,i+1))
  E.append((m+2*i+1,i+1))
for i in range(m):
  if a>>i&1:
    E.append((i,n-1))
print(n,len(E))
for a,b in E:
  print(a+1,b+1)
0