結果

問題 No.45 回転寿司
ユーザー yuruhiyayuruhiya
提出日時 2021-03-25 16:01:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 70 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 23,052 KB
最終ジャッジ日時 2023-08-18 00:55:27
合計ジャッジ時間 4,900 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
16,624 KB
testcase_01 AC 84 ms
17,788 KB
testcase_02 AC 86 ms
20,372 KB
testcase_03 AC 86 ms
21,688 KB
testcase_04 AC 84 ms
18,372 KB
testcase_05 AC 79 ms
15,136 KB
testcase_06 AC 85 ms
17,416 KB
testcase_07 AC 86 ms
20,392 KB
testcase_08 AC 81 ms
15,752 KB
testcase_09 AC 86 ms
20,896 KB
testcase_10 AC 83 ms
16,668 KB
testcase_11 AC 81 ms
16,060 KB
testcase_12 AC 87 ms
20,532 KB
testcase_13 AC 80 ms
15,096 KB
testcase_14 AC 81 ms
15,072 KB
testcase_15 AC 85 ms
17,092 KB
testcase_16 AC 82 ms
15,880 KB
testcase_17 AC 83 ms
16,300 KB
testcase_18 AC 82 ms
15,996 KB
testcase_19 AC 85 ms
19,444 KB
testcase_20 AC 80 ms
15,080 KB
testcase_21 AC 79 ms
15,304 KB
testcase_22 AC 79 ms
15,152 KB
testcase_23 AC 80 ms
15,292 KB
testcase_24 AC 80 ms
15,128 KB
testcase_25 AC 79 ms
15,312 KB
testcase_26 AC 83 ms
16,748 KB
testcase_27 AC 85 ms
19,472 KB
testcase_28 AC 83 ms
17,264 KB
testcase_29 AC 84 ms
18,648 KB
testcase_30 AC 84 ms
18,988 KB
testcase_31 AC 78 ms
15,096 KB
testcase_32 AC 80 ms
15,148 KB
testcase_33 AC 87 ms
23,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*V="+$<.read.split*?,
1.upto(N-2){V[_1+1]+=V[0,_1].max}
p V.max
0