結果
問題 |
No.688 E869120 and Constructing Array 2
|
ユーザー |
|
提出日時 | 2018-05-21 12:47:45 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 14:02:08 |
合計ジャッジ時間 | 1,021 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
#yuki688 import math def nCr(n,r): f=math.factorial return f(n)/f(r)/f(n-r) k=int(raw_input()) for i in xrange(31): for j in xrange(2,31-i): if (1<<i)*nCr(j,2)==k: print i+j res='0'*i+'1'*j print ' '.join(map(str,res))