結果
問題 |
No.3155 Same Birthday
|
ユーザー |
|
提出日時 | 2025-05-23 13:42:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 724 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 19,072 KB |
最終ジャッジ日時 | 2025-05-23 13:43:03 |
合計ジャッジ時間 | 21,993 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
table = [[False for _ in range(1001)] for _ in range(1001)] N = int(input()) for _ in range(N): a, b = map(int, input().split()) if table[a][b]: print("Yes") exit() table[a][b] = True print("No")