結果

問題 No.1563 Same Degree
ユーザー kept1994kept1994
提出日時 2022-04-29 04:24:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 79,324 KB
最終ジャッジ日時 2023-09-10 20:57:45
合計ジャッジ時間 4,020 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,248 KB
testcase_01 AC 180 ms
77,660 KB
testcase_02 AC 147 ms
77,616 KB
testcase_03 AC 146 ms
77,664 KB
testcase_04 AC 149 ms
77,664 KB
testcase_05 AC 159 ms
78,552 KB
testcase_06 AC 199 ms
79,092 KB
testcase_07 AC 202 ms
78,784 KB
testcase_08 AC 199 ms
78,752 KB
testcase_09 AC 203 ms
78,696 KB
testcase_10 AC 201 ms
79,324 KB
testcase_11 AC 102 ms
77,100 KB
testcase_12 AC 113 ms
77,212 KB
testcase_13 AC 151 ms
77,040 KB
testcase_14 AC 156 ms
77,316 KB
testcase_15 AC 137 ms
77,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

MOD = 998244353

def main():
    T = int(input())

    for i in range(T):
        N, M = map(int, input().split())
        for _ in range(M):
            u, v = map(int, input().split())
        if N == 1:
            print("No")
        else:
            print("Yes")
    return

    

if __name__ == '__main__':
    main()
0