結果

問題 No.929 よくあるボールを移動するやつ
ユーザー tailstails
提出日時 2023-02-22 21:26:14
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 478 ms / 2,000 ms
コード長 55 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2023-09-30 04:09:12
合計ジャッジ時間 4,811 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 3 ms
4,376 KB
testcase_07 AC 187 ms
7,104 KB
testcase_08 AC 464 ms
12,800 KB
testcase_09 AC 467 ms
12,732 KB
testcase_10 AC 465 ms
12,704 KB
testcase_11 AC 475 ms
12,736 KB
testcase_12 AC 451 ms
12,688 KB
testcase_13 AC 457 ms
12,756 KB
testcase_14 AC 478 ms
12,704 KB
testcase_15 AC 468 ms
12,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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