結果
| 問題 |
No.1563 Same Degree
|
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2021-07-13 18:30:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 82,032 KB |
| 実行使用メモリ | 70,080 KB |
| 最終ジャッジ日時 | 2024-07-02 14:22:20 |
| 合計ジャッジ時間 | 2,402 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 15 |
ソースコード
import sys
import io, os
input = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
t = int(input())
for _ in range(t):
n, m = int(input())
ind = [0]*n
for i in range(m):
a, b = map(int, input().split())
a, b = a-1, b-1
ind[a] += 1
ind[b] += 1
if len(set(ind)) == len(ind):
print('No')
else:
print('Yes')
brthyyjp