結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー tailstails
提出日時 2019-08-20 23:00:02
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 5,280 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-29 22:49:29
合計ジャッジ時間 2,683 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
4,380 KB
testcase_01 AC 15 ms
4,376 KB
testcase_02 AC 16 ms
4,376 KB
testcase_03 AC 6 ms
4,380 KB
testcase_04 AC 145 ms
4,380 KB
testcase_05 AC 51 ms
4,376 KB
testcase_06 AC 97 ms
4,380 KB
testcase_07 AC 96 ms
4,388 KB
testcase_08 AC 126 ms
4,376 KB
testcase_09 AC 148 ms
4,376 KB
testcase_10 AC 5 ms
4,380 KB
testcase_11 AC 55 ms
4,380 KB
testcase_12 AC 58 ms
4,380 KB
testcase_13 AC 4 ms
4,380 KB
testcase_14 AC 4 ms
4,376 KB
testcase_15 AC 129 ms
4,376 KB
testcase_16 AC 14 ms
4,376 KB
testcase_17 AC 8 ms
4,380 KB
testcase_18 AC 114 ms
4,376 KB
testcase_19 AC 42 ms
4,380 KB
testcase_20 AC 11 ms
4,376 KB
testcase_21 AC 10 ms
4,376 KB
testcase_22 AC 41 ms
4,380 KB
testcase_23 AC 134 ms
4,376 KB
testcase_24 AC 72 ms
4,380 KB
testcase_25 AC 4 ms
4,380 KB
testcase_26 AC 4 ms
4,376 KB
testcase_27 AC 4 ms
4,380 KB
testcase_28 AC 4 ms
4,376 KB
testcase_29 AC 58 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

z=0000000000
read
while IFS=. read a b
do
$b$z
$[c+=a,d+=${a//[0-9]}10#${_::10}]
$[s={-,}1,c+=s*=d*s>=(c*s<0?1:1$z),d-=1$z*s]
done
s=$[!c&&d<0?-1:1]
$z${d/-}
echo ${s/1}$c.${_:${#_}-10}
0