結果

問題 No.3666 League of Jigsaw
コンテスト
ユーザー tyawanmusi
提出日時 2026-08-21 04:27:52
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 372 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 377 ms
コンパイル使用メモリ 21,540 KB
実行使用メモリ 15,996 KB
最終ジャッジ日時 2026-08-30 13:01:54
合計ジャッジ時間 6,720 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

for _ in range(int(input())):
    l, j, o = map(int, input().split())
    if (l + j - 2*o) % 6 != 0:
        print("No")
        continue
    k = (l + j - 2*o) // 6
    if (max(k, 2*k-o) <= l <= min(5*k + 2*o, 4*k + 3*o)):
        if o == 0:
            if l % 2 != 0:
                print("No")
                continue
        print("Yes")
    else:
        print("No")
0