結果

問題 No.1563 Same Degree
ユーザー titan23titan23
提出日時 2022-06-29 02:32:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 87,296 KB
最終ジャッジ日時 2024-05-01 16:30:59
合計ジャッジ時間 3,108 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,968 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 92 ms
81,536 KB
testcase_12 AC 104 ms
81,280 KB
testcase_13 AC 187 ms
85,888 KB
testcase_14 AC 211 ms
87,296 KB
testcase_15 AC 171 ms
85,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

def main():
  n, m = map(int, input().split())
  G = [[] for _ in range(n)]
  for _ in range(m):
    a, b = map(int, input().split())
    a -= 1
    b -= 1
    G[a].append(b)
    G[b].append(a)
  return 'Yes'


print('\n'.join(str(main()) for _ in range(int(input()))))
0