結果

問題 No.3155 Same Birthday
ユーザー karinohito
提出日時 2025-05-24 16:46:53
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 4,294 ms
コンパイル使用メモリ 278,164 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-24 16:47:00
合計ジャッジ時間 5,882 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 32 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;


int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

	ll N;
	cin>>N;
	set<ll> S;
	for(int i=0;i<N;i++){
		ll A,B;
		cin>>A>>B;
		if(S.count(A*100+B)){
			cout<<"Yes"<<endl;
			return 0;
		}
		S.insert(A*100+B);
	}
	cout<<"No"<<endl;
	
}
0