結果
| 問題 | No.3155 Same Birthday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-23 19:18:49 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 220 ms / 2,000 ms |
| コード長 | 425 bytes |
| 記録 | |
| コンパイル時間 | 1,201 ms |
| コンパイル使用メモリ | 219,968 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2026-07-10 23:24:20 |
| 合計ジャッジ時間 | 7,270 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 49 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<tuple<ll,ll,ll,ll>> APBQ;
vector<map<ll,ll>> memo;
ll N;
set<pair<ll,ll>> AB;
int main(){
cin >> N;
for (int i=0; i < N; i++){
pair<ll,ll> ab;
cin >> ab.first >> ab.second;
if (AB.count(ab)){
cout << "Yes" << endl;
return 0;
}
AB.insert(ab);
}
cout << "No" << endl;
}