結果
問題 | No.688 E869120 and Constructing Array 2 |
ユーザー |
![]() |
提出日時 | 2020-03-10 12:35:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-15 23:10:57 |
合計ジャッジ時間 | 1,495 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
k = int(input()) if k == 0: print(1) print(0) exit(0) for i in range(2,100000): t = i*(i-1)//2 v = (k//t).bit_length()-1 if k%t == 0 and k//t == 1 << v and i + v < 31: print(i + v) l = [1]*i + [0]*v print(*l) break