結果
問題 | No.688 E869120 and Constructing Array 2 |
ユーザー | nebukuro09 |
提出日時 | 2018-05-18 22:35:36 |
言語 | PyPy2 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 1,835 ms |
コンパイル使用メモリ | 77,256 KB |
実行使用メモリ | 535,256 KB |
最終ジャッジ日時 | 2023-09-21 19:53:30 |
合計ジャッジ時間 | 5,937 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
76,396 KB |
testcase_01 | AC | 72 ms
76,400 KB |
testcase_02 | AC | 70 ms
76,380 KB |
testcase_03 | AC | 69 ms
76,168 KB |
testcase_04 | AC | 72 ms
76,412 KB |
testcase_05 | AC | 73 ms
76,360 KB |
testcase_06 | AC | 71 ms
76,392 KB |
testcase_07 | AC | 71 ms
76,316 KB |
testcase_08 | AC | 71 ms
76,600 KB |
testcase_09 | MLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
K = input() A = [1, 1] x = 2 S = set() for i in xrange(60): S.add(2**i) while True: y = x * (x - 1) / 2 if K % y == 0 and K / y in S: K /= y break A.append(1) x += 1 while K > 1: A.append(0) K /= 2 print len(A) print ' '.join(map(str, A))