結果
問題 | No.1571 All Your Cycles Are Same Lengths |
ユーザー | NatsubiSogan |
提出日時 | 2021-06-27 14:57:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 426 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 86,724 KB |
実行使用メモリ | 76,620 KB |
最終ジャッジ日時 | 2023-09-07 17:56:15 |
合計ジャッジ時間 | 2,654 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,324 KB |
testcase_01 | AC | 73 ms
71,188 KB |
testcase_02 | WA | - |
testcase_03 | AC | 79 ms
75,448 KB |
testcase_04 | WA | - |
testcase_05 | AC | 86 ms
76,548 KB |
testcase_06 | WA | - |
testcase_07 | AC | 92 ms
76,432 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
for _ in range(int(input())): n, t = map(int, input().split()) if t % 2: print("No"); continue print("Yes") for i in range(1, n + 1): if i == 2: for j in range(i + 1, n + 1): print(i, j, t // 2) else: for j in range(i + 1, n + 1): if j == 2: print(i, j, t // 2) else: print(i, j, 0)