結果

問題 No.3155 Same Birthday
ユーザー PyonPyon
提出日時 2025-05-23 19:10:07
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 238 ms / 2,000 ms
コード長 825 bytes
コンパイル時間 3,234 ms
コンパイル使用メモリ 281,936 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2025-05-23 19:10:41
合計ジャッジ時間 10,178 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define sz(c) ((ll)(c).size())
#define ALL(x) x.begin(),x.end()
#define LB(A,x) (ll)(lower_bound(ALL(A),x)-A.begin())
#define UB(A,x) (ll)(upper_bound(ALL(A),x)-A.begin())
#define BS(A,x) binary_search(ALL(A),x)
#define rep(i,a,b) for(int i=a;i<b;i++)
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
using vi = vector<int>; 
using vvi = vector<vi>; 
using li =vector<ll>;
using lli=vector<li>;
const long long mod=998244353;
int main() { 
	int n;cin>>n;
	map<pair<int,int>,int>mp;
	rep(i,0,n){
		int a,b;cin>>a>>b;
		mp[{a,b}]++;
	}
	for(auto [a,b]:mp)if(b>1){cout<<"Yes";return 0;}
	cout<<"No";
}
0