結果
| 問題 |
No.3196 Unique Nickname
|
| ユーザー |
titia
|
| 提出日時 | 2025-07-11 22:36:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 464 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-07-11 22:36:40 |
| 合計ジャッジ時間 | 1,418 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 8 |
ソースコード
from collections import Counter
N=int(input())
A=[input().split() for i in range(N)]
X=Counter()
Y=Counter()
for a,b in A:
X[a]+=1
Y[b]+=1
flag=1
for a,b in A:
if X[a]>=2 and Y[b]>=2:
flag=0
if flag:
print("Yes")
else:
print("No")
titia