結果
問題 |
No.3155 Same Birthday
|
ユーザー |
|
提出日時 | 2025-05-23 19:03:15 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 213 ms / 2,000 ms |
コード長 | 472 bytes |
コンパイル時間 | 1,188 ms |
コンパイル使用メモリ | 104,776 KB |
実行使用メモリ | 13,184 KB |
最終ジャッジ日時 | 2025-05-23 19:03:49 |
合計ジャッジ時間 | 6,289 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
#include <iostream> #include <set> #include <ranges> int main() { std::cin.tie(nullptr) -> sync_with_stdio(false); int n; std::cin >> n; std::set<std::pair<int, int>> s; for([[maybe_unused]] const auto _: std::views::iota(0, n)) { int a, b; std::cin >> a >> b; if(s.contains(std::make_pair(a, b))) { std::cout << "Yes\n"; std::exit(0); } s.emplace(a, b); } std::cout << "No\n"; }