結果

問題 No.595 登山
ユーザー yuruhiyayuruhiya
提出日時 2021-07-23 11:51:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 291 ms / 1,500 ms
コード長 124 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 52,424 KB
最終ジャッジ日時 2023-09-25 10:03:03
合計ジャッジ時間 8,048 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,024 KB
testcase_01 AC 84 ms
15,144 KB
testcase_02 AC 82 ms
15,036 KB
testcase_03 AC 83 ms
15,092 KB
testcase_04 AC 267 ms
49,344 KB
testcase_05 AC 136 ms
25,120 KB
testcase_06 AC 242 ms
44,448 KB
testcase_07 AC 98 ms
18,040 KB
testcase_08 AC 111 ms
19,888 KB
testcase_09 AC 242 ms
44,692 KB
testcase_10 AC 197 ms
35,836 KB
testcase_11 AC 188 ms
33,636 KB
testcase_12 AC 94 ms
17,604 KB
testcase_13 AC 128 ms
23,568 KB
testcase_14 AC 253 ms
49,400 KB
testcase_15 AC 255 ms
49,460 KB
testcase_16 AC 256 ms
49,604 KB
testcase_17 AC 254 ms
49,492 KB
testcase_18 AC 257 ms
49,572 KB
testcase_19 AC 289 ms
52,204 KB
testcase_20 AC 287 ms
52,084 KB
testcase_21 AC 285 ms
52,076 KB
testcase_22 AC 288 ms
52,168 KB
testcase_23 AC 289 ms
52,292 KB
testcase_24 AC 81 ms
15,256 KB
testcase_25 AC 84 ms
15,036 KB
testcase_26 AC 291 ms
52,424 KB
testcase_27 AC 270 ms
50,856 KB
testcase_28 AC 273 ms
50,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+`dd`.split*?,;x,y=0,N*K
A.reduce{x,y=[x+K,y+K,[x+z=_2-_1,x].max].min,[x+K,y+K,[y-z,y].max].min;_2}
p [x,y].min
0