結果

問題 No.3155 Same Birthday
ユーザー Cafe1942
提出日時 2025-05-23 19:01:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 703 bytes
コンパイル時間 1,332 ms
コンパイル使用メモリ 107,788 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2025-05-23 19:02:24
合計ジャッジ時間 8,535 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>//小数点出力用
//cout << fixed << setprecision(10) << ans;
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
using ll = long long;
using namespace std;
#define modP7 1'000'000'007
#define modP 998244353
bool chkrng0idx(int pos, int sup) { return (0 <= pos && pos < sup); }
int clk4(int num) { return (num - 2) * (num % 2); }
void yn(bool tf) { cout << (tf ? "Yes\n" : "No\n"); }


int main() {
    int N;
    cin >> N;
    set<pair<int, int>>S;
    for (int i = 0;i < N;i++) {
        int A, B;
        cin >> A >> B;
        S.insert({ A,B });
    }
    yn(S.size() != N);
    return 0;
}
0