結果
| 問題 |
No.3196 Unique Nickname
|
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-07-11 21:23:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 289 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,792 KB |
| 実行使用メモリ | 55,472 KB |
| 最終ジャッジ日時 | 2025-07-11 21:23:13 |
| 合計ジャッジ時間 | 1,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
from collections import defaultdict
N = int(input())
p = []
count = defaultdict(int)
for _ in range(N):
s,t = input().split()
count[s] += 1
count[t] += 1
p.append((s,t))
for s,t in p:
if(count[s] >= 2 and count[t] >= 2):
print("No")
exit()
print("Yes")
回転