結果

問題 No.860 買い物
ユーザー tailstails
提出日時 2019-08-13 14:49:04
言語 Bash
(Bash 5.1.16)
結果
TLE  
実行時間 -
コード長 77 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 17:07:22
合計ジャッジ時間 3,224 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 56 ms
4,348 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

read n
for((;n--;a=(a+d<b?a+d:b)+c,b=(b&&b+d<a?b+d:a)+c)){
read c d
}
echo $b
0