結果
| 問題 | No.3155 Same Birthday | 
| コンテスト | |
| ユーザー |  ゼリトキ | 
| 提出日時 | 2025-05-23 19:01:48 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 190 ms / 2,000 ms | 
| コード長 | 498 bytes | 
| コンパイル時間 | 3,125 ms | 
| コンパイル使用メモリ | 281,708 KB | 
| 実行使用メモリ | 16,128 KB | 
| 最終ジャッジ日時 | 2025-05-23 19:02:35 | 
| 合計ジャッジ時間 | 8,442 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 49 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ll long long
const long long mod=998244353;
const long long hmod=46216567629137;
int main(){
    cin.tie(0)->sync_with_stdio(0);
    cout.tie(0);
    map<pair<int,int>,int>M;
    int N;
    cin>>N;
    for(int i=1;i<=N;i++){
        int A,B;
        cin>>A>>B;
        if(M.count({A,B})){
            cout<<"Yes\n";
            return 0;
        }
        M[{A,B}]=1;
    }
    cout<<"No\n";
}
            
            
            
        