結果
| 問題 | No.1563 Same Degree |
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2021-06-26 13:37:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 160 ms / 2,000 ms |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 85,348 KB |
| 実行使用メモリ | 82,708 KB |
| 最終ジャッジ日時 | 2026-03-11 19:03:37 |
| 合計ジャッジ時間 | 2,414 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
def solve():
N,M=map(int,input().split())
C=[0]*N
for i in range(M):
a,b=map(int,input().split())
C[a-1]+=1
C[b-1]+=1
if len(set(C))==N:
print('No')
else:
print('Yes')
for t in range(int(input())):
solve()
googol_S0