結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 23:25:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,222 ms / 5,000 ms
コード長 84 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 136,452 KB
最終ジャッジ日時 2024-04-26 00:03:31
合計ジャッジ時間 51,396 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,083 ms
136,300 KB
testcase_01 AC 84 ms
12,160 KB
testcase_02 AC 876 ms
58,816 KB
testcase_03 AC 1,641 ms
106,260 KB
testcase_04 AC 2,143 ms
105,664 KB
testcase_05 AC 2,171 ms
107,172 KB
testcase_06 AC 2,179 ms
119,604 KB
testcase_07 AC 2,215 ms
121,508 KB
testcase_08 AC 2,206 ms
121,504 KB
testcase_09 AC 2,222 ms
120,940 KB
testcase_10 AC 1,997 ms
120,792 KB
testcase_11 AC 2,057 ms
120,544 KB
testcase_12 AC 1,906 ms
95,596 KB
testcase_13 AC 2,054 ms
110,772 KB
testcase_14 AC 2,195 ms
118,820 KB
testcase_15 AC 1,873 ms
113,024 KB
testcase_16 AC 2,147 ms
122,768 KB
testcase_17 AC 2,145 ms
126,552 KB
testcase_18 AC 2,077 ms
136,324 KB
testcase_19 AC 2,181 ms
112,696 KB
testcase_20 AC 2,067 ms
136,328 KB
testcase_21 AC 2,052 ms
136,452 KB
testcase_22 AC 1,881 ms
104,944 KB
testcase_23 AC 1,983 ms
99,712 KB
testcase_24 AC 80 ms
12,160 KB
testcase_25 AC 124 ms
14,336 KB
testcase_26 AC 101 ms
13,312 KB
testcase_27 AC 94 ms
12,800 KB
testcase_28 AC 410 ms
30,924 KB
testcase_29 AC 244 ms
23,864 KB
testcase_30 AC 124 ms
14,720 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*L,K="+`dd`.split*?,
p (0..M=L.sum/K+1.0).bsearch{|i|L.map{|l|l.div i}.sum<K}
0