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