結果

問題 No.999 てん vs. ほむ
ユーザー yuruhiyayuruhiya
提出日時 2021-08-19 17:47:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 287 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 43,360 KB
最終ジャッジ日時 2024-04-20 20:31:57
合計ジャッジ時間 6,509 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
12,032 KB
testcase_01 AC 80 ms
12,032 KB
testcase_02 AC 80 ms
12,288 KB
testcase_03 AC 80 ms
12,288 KB
testcase_04 AC 81 ms
12,032 KB
testcase_05 AC 81 ms
12,288 KB
testcase_06 AC 83 ms
12,288 KB
testcase_07 AC 78 ms
12,160 KB
testcase_08 AC 84 ms
13,312 KB
testcase_09 AC 262 ms
40,744 KB
testcase_10 AC 140 ms
22,912 KB
testcase_11 AC 116 ms
19,072 KB
testcase_12 AC 165 ms
26,624 KB
testcase_13 AC 287 ms
43,300 KB
testcase_14 AC 279 ms
43,336 KB
testcase_15 AC 275 ms
43,360 KB
testcase_16 AC 280 ms
43,180 KB
testcase_17 AC 256 ms
38,880 KB
testcase_18 AC 252 ms
38,584 KB
testcase_19 AC 263 ms
38,848 KB
testcase_20 AC 266 ms
38,992 KB
testcase_21 AC 282 ms
42,704 KB
testcase_22 AC 278 ms
42,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*A="+`dd`.split*?,
a=*0;b=*0
A.each_slice(2){a<<a[-1]+_1;b<<b[-1]+_2}
p b[N]-a[N]+2*(0..N).map{a[_1]-b[_1]}.max
0