結果
問題 |
No.3155 Same Birthday
|
ユーザー |
![]() |
提出日時 | 2025-05-28 14:16:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 243 ms / 2,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 1,586 ms |
コンパイル使用メモリ | 167,684 KB |
実行使用メモリ | 12,928 KB |
最終ジャッジ日時 | 2025-05-28 14:16:17 |
合計ジャッジ時間 | 8,604 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { int N; cin >> N; using P = pair<int, int>; set<P> st; rep(i, N) { int a, b; cin >> a >> b; P p = P(a, b); if(st.count(p)) { cout << "Yes" << endl; return 0; } st.insert(p); } cout << "No" << endl; }