結果
問題 |
No.688 E869120 and Constructing Array 2
|
ユーザー |
|
提出日時 | 2020-12-15 20:44:02 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 82,260 KB |
実行使用メモリ | 76,228 KB |
最終ジャッジ日時 | 2024-09-20 02:08:38 |
合計ジャッジ時間 | 1,932 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
import math def combinations_count(n, r): return math.factorial(n) // (math.factorial(n - r) * math.factorial(r)) K = int(input()) if K == 0: print(0) for i in range(31): for j in range(2,31-i): if (2**i)*combinations_count(j,2) == K: print(i+j) print(*([0]*i+[1]*j)) exit()