結果
| 問題 |
No.1563 Same Degree
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-11 02:25:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 556 ms / 2,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2024-09-24 08:32:37 |
| 合計ジャッジ時間 | 6,677 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
T = int(input())
for case in range(T):
N,M = map(int,input().split())
Tree = [0]*N
for i in range(M):
u,v = map(int,input().split())
Tree[u-1]+=1
Tree[v-1]+=1
if len(set(Tree))<N:print("Yes")
else:print("No")