結果

問題 No.929 よくあるボールを移動するやつ
ユーザー tailstails
提出日時 2023-02-22 21:23:39
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 389 ms / 2,000 ms
コード長 59 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 12,804 KB
最終ジャッジ日時 2023-09-30 04:07:17
合計ジャッジ時間 5,189 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 3 ms
4,376 KB
testcase_07 AC 156 ms
7,004 KB
testcase_08 AC 388 ms
12,788 KB
testcase_09 AC 385 ms
12,764 KB
testcase_10 AC 385 ms
12,732 KB
testcase_11 AC 389 ms
12,804 KB
testcase_12 AC 385 ms
12,800 KB
testcase_13 AC 385 ms
12,796 KB
testcase_14 AC 387 ms
12,688 KB
testcase_15 AC 387 ms
12,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read n
read b
for b in $b;{((x+=b-1,y+=x<0?-x:x));}
echo $y
0