結果
| 問題 |
No.3196 Unique Nickname
|
| コンテスト | |
| ユーザー |
むつある
|
| 提出日時 | 2025-07-11 21:29:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 220 bytes |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 82,280 KB |
| 実行使用メモリ | 54,220 KB |
| 最終ジャッジ日時 | 2025-07-11 21:29:31 |
| 合計ジャッジ時間 | 1,709 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
n=int(input())
s={}
g=[input().split() for _ in range(n)]
for i,j in g:
s[i]=s.get(i,0)+1
s[j]=s.get(j,0)+1
for i,j in g:
if s[i]==1 or s[j]==1:
continue
else:
print('No')
exit()
print('Yes')
むつある