結果

問題 No.586 ダブルブッキング
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-06-23 00:32:38
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 08:13:11
合計ジャッジ時間 919 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
4,376 KB
testcase_01 AC 8 ms
4,380 KB
testcase_02 AC 9 ms
4,376 KB
testcase_03 AC 9 ms
4,376 KB
testcase_04 AC 9 ms
4,376 KB
testcase_05 AC 9 ms
4,376 KB
testcase_06 AC 9 ms
4,376 KB
testcase_07 AC 9 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read p1; read p2; read n; sort | uniq -c | awk -v p="$((p1+p2))" 'BEGIN{sum=0} $1>1{sum+=$1-1} END{print sum * p}'
0