結果
問題 |
No.474 色塗り2
|
ユーザー |
![]() |
提出日時 | 2025-04-16 16:24:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 401 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 81,860 KB |
実行使用メモリ | 115,480 KB |
最終ジャッジ日時 | 2025-04-16 16:25:42 |
合計ジャッジ時間 | 809 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 3 |
ソースコード
import sys def main(): input = sys.stdin.read().split() T = int(input[0]) idx = 1 for _ in range(T): A = int(input[idx]) B = int(input[idx+1]) C = int(input[idx+2]) idx += 3 res = 0 if C % 2 == 1: if ((C - 1) & A) == 0 and ((C - 1) & B) == 0: res = 1 print(res) if __name__ == "__main__": main()