結果

問題 No.1563 Same Degree
ユーザー MottchanMottchan
提出日時 2023-03-27 21:45:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 284 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,784 KB
実行使用メモリ 90,208 KB
最終ジャッジ日時 2023-10-19 20:23:21
合計ジャッジ時間 5,060 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,376 KB
testcase_01 AC 154 ms
76,804 KB
testcase_02 AC 154 ms
76,848 KB
testcase_03 AC 153 ms
77,016 KB
testcase_04 AC 154 ms
76,628 KB
testcase_05 AC 153 ms
76,868 KB
testcase_06 AC 239 ms
77,972 KB
testcase_07 AC 235 ms
78,000 KB
testcase_08 AC 231 ms
77,924 KB
testcase_09 AC 189 ms
77,052 KB
testcase_10 AC 239 ms
77,920 KB
testcase_11 AC 107 ms
90,208 KB
testcase_12 AC 145 ms
90,188 KB
testcase_13 AC 265 ms
90,208 KB
testcase_14 AC 284 ms
90,208 KB
testcase_15 AC 218 ms
90,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(n):
    N,M = map(int, input().split())
    d = {i:0 for i in range(1,N+1)}
    for k in range(M):
        for j in list(map(int, input().split())):
            a = d[j]
            d[j] = a + 1

    if len(d.values()) != len(set(d.values())):
        print('Yes')
    else:
        print('No')
0