結果

問題 No.29 パワーアップ
ユーザー s4229bps4229bp
提出日時 2020-07-08 20:55:34
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 04:57:38
合計ジャッジ時間 1,657 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
6,812 KB
testcase_01 AC 32 ms
6,940 KB
testcase_02 AC 33 ms
6,940 KB
testcase_03 AC 32 ms
6,940 KB
testcase_04 AC 31 ms
6,944 KB
testcase_05 AC 33 ms
6,944 KB
testcase_06 AC 33 ms
6,940 KB
testcase_07 AC 33 ms
6,940 KB
testcase_08 AC 32 ms
6,940 KB
testcase_09 AC 32 ms
6,944 KB
testcase_10 AC 35 ms
6,944 KB
testcase_11 AC 34 ms
6,944 KB
testcase_12 AC 31 ms
6,944 KB
testcase_13 AC 33 ms
6,940 KB
testcase_14 AC 35 ms
6,944 KB
testcase_15 AC 35 ms
6,940 KB
testcase_16 AC 34 ms
6,940 KB
testcase_17 AC 31 ms
6,940 KB
testcase_18 AC 33 ms
6,940 KB
testcase_19 AC 34 ms
6,940 KB
testcase_20 AC 33 ms
6,944 KB
testcase_21 AC 33 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read n
a=(`dd`)
c=0
p=0
r=0
for i in `seq 10`
do
    c=`echo ${a[@]} | tr ' ' '\n' | grep -cx $i`
    p=$((p+c/2))
    r=$((r+c%2))
done
echo $((p+r/4))
0