結果

問題 No.3155 Same Birthday
ユーザー れいん
提出日時 2025-05-25 00:24:59
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 3,081 ms
コンパイル使用メモリ 280,528 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2025-05-25 00:25:10
合計ジャッジ時間 11,116 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int N;
    cin >> N;
    set<pair<int, int>> st;
    for (int i = 0; i < N; i++)
    {
        int A, B;
        cin >> A >> B;
        st.insert({A, B});
    }
    if (st.size() != N)
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
}
0