結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー cielciel
提出日時 2018-06-11 19:32:18
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 85 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 132,488 KB
最終ジャッジ日時 2024-04-26 00:32:28
合計ジャッジ時間 56,553 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 91 ms
12,416 KB
testcase_02 AC 972 ms
64,356 KB
testcase_03 AC 1,738 ms
101,548 KB
testcase_04 AC 2,371 ms
131,448 KB
testcase_05 AC 2,343 ms
132,460 KB
testcase_06 AC 2,359 ms
132,488 KB
testcase_07 AC 2,414 ms
111,664 KB
testcase_08 AC 2,411 ms
111,664 KB
testcase_09 AC 2,424 ms
116,652 KB
testcase_10 AC 2,120 ms
105,928 KB
testcase_11 AC 2,230 ms
100,028 KB
testcase_12 AC 2,059 ms
102,532 KB
testcase_13 AC 2,220 ms
103,608 KB
testcase_14 AC 2,318 ms
120,248 KB
testcase_15 AC 2,091 ms
112,192 KB
testcase_16 AC 2,360 ms
132,472 KB
testcase_17 AC 2,366 ms
131,100 KB
testcase_18 AC 2,374 ms
132,372 KB
testcase_19 AC 2,381 ms
113,188 KB
testcase_20 AC 2,385 ms
111,624 KB
testcase_21 AC 2,389 ms
111,728 KB
testcase_22 AC 2,084 ms
106,032 KB
testcase_23 AC 2,167 ms
99,904 KB
testcase_24 AC 89 ms
12,288 KB
testcase_25 AC 134 ms
14,336 KB
testcase_26 AC 111 ms
13,056 KB
testcase_27 AC 104 ms
12,800 KB
testcase_28 AC 464 ms
31,060 KB
testcase_29 AC 277 ms
22,632 KB
testcase_30 AC 140 ms
14,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,*l,k=`dd`.split.map &:to_i
p (0..1e9).bsearch{|h|l.map{|e|(e/h).to_i}.reduce(:+)<k}
0