結果

問題 No.3155 Same Birthday
ユーザー みうね
提出日時 2025-05-12 00:45:08
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 3,440 ms
コンパイル使用メモリ 279,232 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2025-05-13 17:52:56
合計ジャッジ時間 8,843 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
	int N;
	cin >> N;
	set<pair<int, int>> st;
	while (N--) {
		int a, b;
		cin >> a >> b;
		if (st.count({a,b})) {
			cout << "Yes\n";
			return 0;
		}
		st.insert({a, b});
	}
	cout << "No\n";
	return 0;
}
0