結果
| 問題 | No.1563 Same Degree |
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-06-26 13:22:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 126 ms / 2,000 ms |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 85,664 KB |
| 実行使用メモリ | 83,308 KB |
| 最終ジャッジ日時 | 2026-03-11 19:01:45 |
| 合計ジャッジ時間 | 2,234 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
for t in range(int(input())):
n,m=map(int,input().split())
cnt=[0]*n
for i in range(m):
a,b=map(int,input().split())
cnt[a-1]+=1
cnt[b-1]+=1
cnt2=[0]*(m+1)
for i in range(n):
cnt2[cnt[i]]+=1
if max(cnt2)>=2:
print("Yes")
else:
print("No")
nasubi24