結果

問題 No.45 回転寿司
ユーザー letrangerjpletrangerjp
提出日時 2017-06-15 16:54:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 94 ms / 5,000 ms
コード長 68 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 11,556 KB
実行使用メモリ 22,956 KB
最終ジャッジ日時 2023-08-27 15:30:25
合計ジャッジ時間 4,415 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
16,668 KB
testcase_01 AC 93 ms
17,832 KB
testcase_02 AC 91 ms
20,368 KB
testcase_03 AC 89 ms
21,596 KB
testcase_04 AC 88 ms
18,460 KB
testcase_05 AC 87 ms
15,388 KB
testcase_06 AC 87 ms
17,332 KB
testcase_07 AC 90 ms
20,504 KB
testcase_08 AC 84 ms
15,764 KB
testcase_09 AC 93 ms
21,112 KB
testcase_10 AC 88 ms
16,812 KB
testcase_11 AC 86 ms
15,916 KB
testcase_12 AC 90 ms
20,696 KB
testcase_13 AC 84 ms
15,248 KB
testcase_14 AC 84 ms
15,124 KB
testcase_15 AC 87 ms
16,888 KB
testcase_16 AC 85 ms
16,024 KB
testcase_17 AC 87 ms
16,440 KB
testcase_18 AC 84 ms
16,076 KB
testcase_19 AC 89 ms
19,300 KB
testcase_20 AC 84 ms
15,260 KB
testcase_21 AC 83 ms
15,172 KB
testcase_22 AC 85 ms
15,244 KB
testcase_23 AC 84 ms
15,040 KB
testcase_24 AC 83 ms
15,320 KB
testcase_25 AC 83 ms
15,128 KB
testcase_26 AC 86 ms
16,776 KB
testcase_27 AC 90 ms
19,576 KB
testcase_28 AC 87 ms
17,288 KB
testcase_29 AC 89 ms
18,840 KB
testcase_30 AC 89 ms
18,876 KB
testcase_31 AC 84 ms
15,140 KB
testcase_32 AC 85 ms
15,040 KB
testcase_33 AC 94 ms
22,956 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*V="+`dd`.split*?,
1.upto(N-2){|i|V[i+1]+=V[0,i].max}
p V.max
0