結果
問題 |
No.1468 Colourful Pastel
|
ユーザー |
![]() |
提出日時 | 2021-05-14 17:54:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 49 ms / 1,000 ms |
コード長 | 602 bytes |
コンパイル時間 | 1,283 ms |
コンパイル使用メモリ | 88,912 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 21:56:08 |
合計ジャッジ時間 | 2,538 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
#include <iostream> #include<map> #include<set> #include<vector> #include<algorithm> #include<numeric> #include<math.h> using ll = long long; #define rep(i,n) for(int i = 0;i<n;i++) #define req(i,n) for(int i = 1;i<=n;i++) #define rrep(i,n) for(int i = n-1;i>=0;i++) #define ALL(a) a.begin(),a.end() using namespace std; int main(){ map<string, int> mp1, mp2; int n; cin >> n; string s; rep(i, n) cin >> s,mp1[s]++; rep(i, n - 1) cin >> s, mp2[s]++; for (auto it = mp1.begin(); it != mp1.end(); it++) { if (it->second != mp2[it->first])cout << it->first << endl; } }