結果

問題 No.3155 Same Birthday
ユーザー kidodesu
提出日時 2025-05-23 19:04:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 200 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 651 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 92,396 KB
最終ジャッジ日時 2025-05-23 19:04:51
合計ジャッジ時間 7,246 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
C = set()
for i in range(n):
	a, b = map(int, input().split())
	c = a * 100000 + b
	if c in C:
		print("Yes")
		exit()
	C.add(c)

print("No")
0