結果

問題 No.1563 Same Degree
ユーザー brthyyjpbrthyyjp
提出日時 2021-07-13 18:31:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 388 bytes
コンパイル時間 700 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 80,956 KB
最終ジャッジ日時 2023-09-15 10:38:48
合計ジャッジ時間 2,958 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,504 KB
testcase_01 AC 99 ms
78,108 KB
testcase_02 AC 99 ms
78,052 KB
testcase_03 AC 99 ms
78,248 KB
testcase_04 AC 98 ms
78,144 KB
testcase_05 AC 98 ms
77,832 KB
testcase_06 AC 122 ms
78,456 KB
testcase_07 AC 121 ms
78,008 KB
testcase_08 AC 123 ms
78,516 KB
testcase_09 AC 120 ms
78,384 KB
testcase_10 AC 121 ms
78,036 KB
testcase_11 AC 85 ms
77,640 KB
testcase_12 AC 89 ms
78,448 KB
testcase_13 AC 103 ms
80,248 KB
testcase_14 AC 107 ms
80,956 KB
testcase_15 AC 98 ms
79,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 = map(int, input().split())
    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')
0