結果
問題 | No.688 E869120 and Constructing Array 2 |
ユーザー | prd_xxx |
提出日時 | 2018-05-18 22:39:17 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 10,684 KB |
実行使用メモリ | 8,392 KB |
最終ジャッジ日時 | 2023-09-21 19:55:12 |
合計ジャッジ時間 | 1,430 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
8,164 KB |
testcase_01 | WA | - |
testcase_02 | AC | 15 ms
8,224 KB |
testcase_03 | WA | - |
testcase_04 | AC | 16 ms
8,392 KB |
testcase_05 | AC | 15 ms
8,348 KB |
testcase_06 | AC | 15 ms
8,256 KB |
testcase_07 | WA | - |
testcase_08 | AC | 15 ms
8,208 KB |
testcase_09 | AC | 15 ms
8,340 KB |
testcase_10 | AC | 15 ms
8,340 KB |
testcase_11 | AC | 15 ms
8,160 KB |
testcase_12 | AC | 15 ms
8,356 KB |
ソースコード
import math K = int(input()) for i in range(1,31): d = K//(2**i) a = int(math.sqrt(d*2)) if a*(a+1) == d*2: print(i+a+1) arr = [0]*i + [1]*(a+1) print(*arr) exit()