結果

問題 No.904 サメトロ
ユーザー cielciel
提出日時 2019-01-24 23:13:49
言語 Crystal
(1.11.2)
結果
WA  
実行時間 -
コード長 120 bytes
コンパイル時間 18,729 ms
コンパイル使用メモリ 254,668 KB
実行使用メモリ 4,588 KB
最終ジャッジ日時 2023-09-13 10:01:15
合計ジャッジ時間 17,556 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 2 ms
4,472 KB
testcase_05 AC 3 ms
4,412 KB
testcase_06 AC 3 ms
4,412 KB
testcase_07 WA -
testcase_08 AC 2 ms
4,404 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
4,380 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
4,376 KB
testcase_16 WA -
testcase_17 AC 2 ms
4,380 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 2 ms
4,380 KB
testcase_26 WA -
testcase_27 AC 2 ms
4,396 KB
testcase_28 AC 3 ms
4,380 KB
testcase_29 AC 2 ms
4,424 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 2 ms
4,416 KB
testcase_35 AC 3 ms
4,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=gets.not_nil!.to_i-1
m=c=d=0
n.times{x,y=gets.not_nil!.split.map &.to_i;m=[m,x+y].max;c+=x;d+=x}
p d-[0,d-c,m-c].max+1
0