結果
問題 |
No.3155 Same Birthday
|
ユーザー |
![]() |
提出日時 | 2025-05-23 19:03:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 196 ms / 2,000 ms |
コード長 | 692 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 100,172 KB |
最終ジャッジ日時 | 2025-05-23 19:04:02 |
合計ジャッジ時間 | 7,998 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
import sys, time, random, heapq, math, itertools from collections import deque, Counter, defaultdict #from sortedcontainers import SortedSet, SortedList from bisect import bisect, bisect_left, bisect_right import heapq as hq from functools import cache, cmp_to_key def debug(*x):print('debug:',*x, file=sys.stderr) sys.setrecursionlimit(300000) input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 N = ii() AB = set() for i in range(N): a,b = map(int,input().split()) if (a,b) in AB: print("Yes") exit() else: AB.add((a,b)) print("No")