結果

問題 No.1468 Colourful Pastel
ユーザー 👑 CleyL
提出日時 2022-08-21 18:35:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 370 bytes
コンパイル時間 996 ms
コンパイル使用メモリ 78,500 KB
最終ジャッジ日時 2025-01-31 02:32:33
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <map>
using namespace std;
int main(){
    map<string,int> A;
    int n;cin>>n;
    for(int i = 0; n > i; i++){
        string s;cin>>s;
        A[s]++;
    }
    for(int i = 0; n-1 > i; i++){
        string s;cin>>s;
        A[s]--;
    }
    for(auto x: A){
        if(x.second == 1){
            cout << x.first << endl;
        }
    }
}
0