結果

問題 No.938 賢人を探せ
ユーザー tonyu0
提出日時 2019-12-25 23:20:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 795 ms
コンパイル使用メモリ 82,500 KB
最終ジャッジ日時 2025-01-08 15:12:19
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 6 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <unordered_map>
using namespace std;
int n;
string s, t;
int main()
{
  cin >> n;
  unordered_map<string, int> m;
  for (int i = 0; i < n; ++i)
  {
    cin >> s >> t;
    ++m[s];
    m[t];
  }
  for (auto p : m)
  {
    if (p.second == 0)
    {
      cout << p.first << '\n';
    }
  }
  return 0;
}
0