結果

問題 No.586 ダブルブッキング
ユーザー __eggshell
提出日時 2017-12-20 17:51:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 61,908 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-16 07:07:07
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <iostream>
#include <string>
#include <set>

using namespace std;

int main() {
    int P1,P2,N,i,y;
    set<int> x;
    cin >> P1 >> P2 >> N;
    for(i=0;i<N;i++){
        cin >> y;
        x.insert(y);
    }
    int z = x.size();
    cout << (N-z)*(P1+P2);
}
0