結果
| 問題 | No.3155 Same Birthday |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-05-24 00:03:30 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 154 ms / 2,000 ms |
| コード長 | 535 bytes |
| 記録 | |
| コンパイル時間 | 3,305 ms |
| コンパイル使用メモリ | 277,824 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2025-05-24 00:03:39 |
| 合計ジャッジ時間 | 7,801 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 49 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int n;
cin >> n;
set<pair<int, int>> s;
rep(_, n) {
int x, y;
cin >> x >> y;
if (s.contains({ x, y })) {
cout << "Yes" << '\n';
return 0;
}
s.insert({ x, y });
}
cout << "No" << '\n';
return 0;
}
a01sa01to