結果
問題 |
No.3155 Same Birthday
|
ユーザー |
|
提出日時 | 2025-05-23 17:00:29 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 145 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 4,967 ms |
コンパイル使用メモリ | 276,596 KB |
実行使用メモリ | 13,056 KB |
最終ジャッジ日時 | 2025-05-23 17:00:42 |
合計ジャッジ時間 | 11,446 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; set<int> st; for(int i=0;i<n;i++){ int a,b; cin >> a >> b; if(st.find((a<<10)+b)!=st.end()){ cout << "Yes\n"; return 0; } st.insert((a<<10)+b); } cout << "No\n"; return 0; }