結果

問題 No.688 E869120 and Constructing Array 2
ユーザー letrangerjpletrangerjp
提出日時 2018-05-18 23:23:45
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 11,216 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-09-21 20:06:28
合計ジャッジ時間 2,202 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,320 KB
testcase_01 AC 77 ms
15,084 KB
testcase_02 AC 78 ms
15,220 KB
testcase_03 AC 77 ms
15,140 KB
testcase_04 AC 82 ms
15,280 KB
testcase_05 WA -
testcase_06 AC 76 ms
15,152 KB
testcase_07 AC 76 ms
15,344 KB
testcase_08 AC 76 ms
15,144 KB
testcase_09 AC 77 ms
15,036 KB
testcase_10 AC 76 ms
15,156 KB
testcase_11 AC 77 ms
15,072 KB
testcase_12 AC 76 ms
15,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

K=gets.to_i
b=0
(0..30).map{|i|b+=i
(n=(0..20).find{|x|b<<x==K})&&(puts n+i+=1,[0]*n+[1]*i;exit)}
0