結果

問題 No.1571 All Your Cycles Are Same Lengths
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-06-27 15:12:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 78,404 KB
最終ジャッジ日時 2023-09-07 17:58:25
合計ジャッジ時間 3,389 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
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 -
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

https://yukicoder.me/problems/no/1571

"""

from sys import stdin
import sys

Q = int(stdin.readline())

for loop in range(Q):

    N,T = map(int,stdin.readline().split())

    ans = []

    for b in range(1,N+1):
        for a in range(1,b):

            if a == 1 or b == 1:
                ans.append((a,b,T))
            else:
                ans.append((a,b,0))

    print ("Yes")
    for i in ans:
        print (*i)
0