結果

問題 No.586 ダブルブッキング
ユーザー ebicochineal
提出日時 2017-11-04 11:20:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 1,841 ms
コンパイル使用メモリ 171,788 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-23 05:39:18
合計ジャッジ時間 2,250 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int P1, P2, N;
    cin >> P1 >> P2 >> N;
    unordered_set<int> s;
    for (int i = 0; i < N; ++i) {
        int t;
        cin >> t;
        s.insert(t);
    }
    
    cout << (P1+P2) * (N-s.size()) << endl;
    
    return 0;
}
0