結果

問題 No.474 色塗り2
ユーザー gew1fw
提出日時 2025-06-12 15:38:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 116,224 KB
最終ジャッジ日時 2025-06-12 15:38:35
合計ジャッジ時間 1,110 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def main():
    input = sys.stdin.read
    data = input().split()
    T = int(data[0])
    idx = 1
    for _ in range(T):
        A = int(data[idx])
        B = int(data[idx+1])
        C = int(data[idx+2])
        idx +=3
        if C == 1:
            print(1)
        else:
            if A >=2:
                print(0)
            else:
                if C %2 ==0:
                    print(0)
                else:
                    print(1)
    print()

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