結果
| 問題 |
No.688 E869120 and Constructing Array 2
|
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2018-05-18 22:37:22 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-07-07 13:26:41 |
| 合計ジャッジ時間 | 3,129 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
k=gets.chomp.to_i
1.upto 30 do |n|
2.upto 30 do |one|
zero=n-one
next if zero<0
if (one)*(one-1)/2*(2**zero)==k
arr=[1]*one+[0]*zero
puts arr.join(' ')
exit 0
end
end
end
ikd