結果
| 問題 | No.3155 Same Birthday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-23 19:03:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,848 KB |
| 実行使用メモリ | 90,444 KB |
| 最終ジャッジ日時 | 2026-07-10 23:07:22 |
| 合計ジャッジ時間 | 4,999 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 1 TLE * 1 -- * 47 |
ソースコード
N = int(input())
birthday = []
for i in range(N):
A, B = map(int, input().split())
birthday.append((A,B))
status = False
for i in range(N):
for j in range(i+1, N):
if birthday[i] == birthday[j]:
# print(i,j)
status = True
break
if status:
print("Yes")
else:
print("No")