Codeforces Round 911 (Div. 2) 1900B. Cover in Water Solution
Problem Link : https://codeforces.com/contest/1900/problem/B
Solution in C++:
- /// Author : AH_Tonmoy
- #include <bits/stdc++.h>
- using namespace std;
- int32_t main() {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int t;
- cin >> t;
- while (t--) {
- int a , b , c ;
- bool x = false , y = false , z = false ;
- cin >> a >> b >> c ;
- if ((c+b)%2==0) x = true ;
- if ((c+a)%2==0) y = true ;
- if ((a+b)%2==0) z = true ;
- cout << x <<' '<<y <<' '<< z <<'\n';
- }
- return 0 ;
- }
No comments