Submission #66166561
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
// #define int long long
#define rep(i,j,k) for(int i=(j);i<=(k);i++)
#define per(i,j,k) for(int i=(j);i>=(k);i--)
#define pb emplace_back
#define fi first
#define se second
using vi=vector<int>;
using pi=pair<int,int>;
template<typename T0, typename T1> bool chmin(T0 &x,const T1 &y){
if(y<x){x=y; return true;} return false;
}
template<typename T0, typename T1> bool chmax(T0 &x,const T1 &y){
if(y>x){x=y; return true;} return false;
}
namespace Debug{
template<typename T> void _debug(char *s, T x){
cerr<< s <<" = "<< x <<endl;
}
template<typename T, typename ...Ar> void _debug(char *s, T x, Ar... y){
while(*s != ',') cerr<< *s++;
cerr<< " = "<< x <<",";
_debug(s+1, y...);
}
}
using namespace Debug;
#define gdb(...) _debug((char*)#__VA_ARGS__, __VA_ARGS__)
signed main(){
#ifdef LOCAL
freopen(".in","r",stdin);
freopen(".out","w",stdout);
#endif
ios::sync_with_stdio(0);cin.tie(0);
// rep(a, 0, 2){
// rep(b, 0, 2){
// rep(c, 0, 2){
// if(b == (a < b) + (c < b)){
// }
// else{
// gdb(a, b, c);
// }
// }
// }
// }
int t;
cin >> t;
while(t--){
int a, b, c;
cin >> a >> b >> c;
cout << ((c > 0 || b % 2 == 0) && a * 2 >= b && a >= c? "Yes": "No") <<'\n';
}
}
Submission Info
| Submission Time |
|
| Task |
B - Rivalry |
| User |
bananabot |
| Language |
C++ 23 (Clang 16.0.6) |
| Score |
500 |
| Code Size |
1335 Byte |
| Status |
AC |
| Exec Time |
37 ms |
| Memory |
3560 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
500 / 500 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
example_00.txt |
| All |
example_00.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt |
| Case Name |
Status |
Exec Time |
Memory |
| example_00.txt |
AC |
1 ms |
3504 KiB |
| test_00.txt |
AC |
23 ms |
3412 KiB |
| test_01.txt |
AC |
35 ms |
3412 KiB |
| test_02.txt |
AC |
36 ms |
3404 KiB |
| test_03.txt |
AC |
36 ms |
3392 KiB |
| test_04.txt |
AC |
36 ms |
3516 KiB |
| test_05.txt |
AC |
36 ms |
3432 KiB |
| test_06.txt |
AC |
37 ms |
3400 KiB |
| test_07.txt |
AC |
36 ms |
3512 KiB |
| test_08.txt |
AC |
35 ms |
3312 KiB |
| test_09.txt |
AC |
35 ms |
3560 KiB |