結果
問題 | No.688 E869120 and Constructing Array 2 |
ユーザー |
|
提出日時 | 2020-12-15 20:26:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,272 KB |
実行使用メモリ | 77,060 KB |
最終ジャッジ日時 | 2024-09-20 02:06:52 |
合計ジャッジ時間 | 2,529 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
76,772 KB |
testcase_01 | AC | 103 ms
76,428 KB |
testcase_02 | AC | 104 ms
77,060 KB |
testcase_03 | WA | - |
testcase_04 | AC | 104 ms
76,888 KB |
testcase_05 | AC | 104 ms
76,744 KB |
testcase_06 | AC | 103 ms
76,964 KB |
testcase_07 | AC | 102 ms
76,748 KB |
testcase_08 | AC | 102 ms
76,328 KB |
testcase_09 | WA | - |
testcase_10 | AC | 103 ms
76,576 KB |
testcase_11 | AC | 105 ms
76,504 KB |
testcase_12 | AC | 102 ms
76,456 KB |
ソースコード
import math def combinations_count(n, r): return math.factorial(n) // (math.factorial(n - r) * math.factorial(r)) K = int(input()) for i in range(31): for j in range(2,31): if (2**i)*combinations_count(j,2) == K: print(i+j) print(*([0]*i+[1]*j)) break