結果
| 問題 |
No.474 色塗り2
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:44:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 1,745 ms |
| コンパイル使用メモリ | 67,976 KB |
| 実行使用メモリ | 7,840 KB |
| 最終ジャッジ日時 | 2025-06-12 20:44:22 |
| 合計ジャッジ時間 | 2,158 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 3 |
ソースコード
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
while (T--) {
int A, B, C;
cin >> A >> B >> C;
bool cond1 = (C % 2) == 1;
bool cond2 = ((C + B - 1) & B) == B;
bool cond3 = ((C + A - 1) & A) == A;
cout << (cond1 && cond2 && cond3 ? 1 : 0) << '\n';
}
return 0;
}
gew1fw