結果

問題 No.3155 Same Birthday
ユーザー u_kun
提出日時 2025-05-23 20:53:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 236 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 96,808 KB
最終ジャッジ日時 2025-05-23 20:53:40
合計ジャッジ時間 8,273 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

S = set()

for _ in range(N):
    a, b = map(int, input().split())
    
    if (a, b) in S:
        print("Yes")
        exit()
    
    else:
        S.add((a, b))

print("No")
0