結果
問題 | No.1571 All Your Cycles Are Same Lengths |
ユーザー |
👑 ![]() |
提出日時 | 2021-06-27 15:12:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 429 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 76,852 KB |
最終ジャッジ日時 | 2024-06-25 11:46:16 |
合計ジャッジ時間 | 2,969 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 10 |
ソースコード
"""https://yukicoder.me/problems/no/1571"""from sys import stdinimport sysQ = 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)