結果
問題 |
No.688 E869120 and Constructing Array 2
|
ユーザー |
|
提出日時 | 2019-07-16 15:52:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-30 22:10:58 |
合計ジャッジ時間 | 2,760 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 9 |
ソースコード
k = int(input()) l = [] for i in range(31): for j in range(31): if (i-1)*i/2 * 2**j == k: l.append([i, j]) l2 = list('0' * l[0][0] + '1' * l[0][1]) print(sum(l[0])) print(' '.join(l2))