結果
問題 |
No.3155 Same Birthday
|
ユーザー |
|
提出日時 | 2025-05-23 19:10:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 298 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 2,066 ms |
コンパイル使用メモリ | 198,760 KB |
実行使用メモリ | 12,928 KB |
最終ジャッジ日時 | 2025-05-23 19:11:01 |
合計ジャッジ時間 | 9,043 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; set<pair<int,int>> s; for(int i = 0; i < n; ++i) { pair<int,int> p; cin >> p.first >> p.second; if(s.count(p)) { cout << "Yes" << endl; return 0; } s.insert(p); } cout << "No" << endl; return 0; }