結果

問題 No.3155 Same Birthday
ユーザー SUPERARMOR
提出日時 2025-06-19 12:07:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 664 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 49,720 KB
最終ジャッジ日時 2025-06-19 12:07:37
合計ジャッジ時間 19,861 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(N):
	birth = set()
	for _ in range(N):
		a, b = input().split()
		if (a, b) in birth:
			return 'Yes'
		else:
			birth.add((a, b))
	return 'No'

N = int(input())
print(solve(N))
0