結果

問題 No.1468 Colourful Pastel
ユーザー kkkk97368086
提出日時 2021-12-07 22:02:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 173,900 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-08 01:26:52
合計ジャッジ時間 2,339 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    int n;
    cin >> n;
    set<int> ans;
    vector<int> a(n),b(n-1);
    for(int i=0; i<n; i++) cin >> a[i];
    for(int i=0; i<n-1; i++){
        cin >> b[i];
        ans.insert(b[i]);
    }
    for(int i=0; i<n; i++){
        if(!ans.count(a[i])){
            cout << a[i] << endl;
            return 0;
        }
    }
}
0