結果
| 問題 | No.3155 Same Birthday | 
| コンテスト | |
| ユーザー |  srjywrdnprkt | 
| 提出日時 | 2025-07-25 18:27:09 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 226 ms / 2,000 ms | 
| コード長 | 527 bytes | 
| コンパイル時間 | 3,297 ms | 
| コンパイル使用メモリ | 280,740 KB | 
| 実行使用メモリ | 13,056 KB | 
| 最終ジャッジ日時 | 2025-07-25 18:27:22 | 
| 合計ジャッジ時間 | 12,285 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 49 | 
ソースコード
#include <bits/stdc++.h>
//#include <atcoder/modint>
using namespace std;
//using namespace atcoder;
using ll = long long;
//using mint = modint998244353;
int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
    int N;
    cin >> N;
    set<pair<int, int>> st;
    for (int i=0; i<N; i++){
        int a, b;
        cin >> a >> b;
        if (st.count({a, b})){
            cout << "Yes" << endl;
            return 0;
        }
        st.insert({a, b});
    }
    cout << "No" << endl;
    return 0;
}
            
            
            
        