結果
問題 | No.1563 Same Degree |
ユーザー |
![]() |
提出日時 | 2021-06-26 13:37:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 178 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,696 KB |
最終ジャッジ日時 | 2024-06-25 10:25:59 |
合計ジャッジ時間 | 3,092 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 |
ソースコード
def solve():N,M=map(int,input().split())C=[0]*Nfor i in range(M):a,b=map(int,input().split())C[a-1]+=1C[b-1]+=1if len(set(C))==N:print('No')else:print('Yes')for t in range(int(input())):solve()