Please sign in first.
Submission #66160930
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
inline int read(){
char ch=getchar(); while(!isdigit(ch) && ch!='-') ch=getchar();
int x=0,ff=1; if(ch=='-') ff=-1,ch=getchar();
while(isdigit(ch)) x=(x<<3) + (x<<1) + (ch^48),ch=getchar();
return x*ff;
}
void vmain(){
int c0=read(),c1=read(),c2=read();
if(!c2 && ((c1&1) || c0*2<c1)) {puts("No"); return ;}
else {
if(c2<=c0 && c0*2>=c1) puts("Yes");
else puts("No");
}
}
int main(){
int T=read(); while(T--) vmain();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Rivalry |
| User | llloserqz |
| Language | C++ 20 (gcc 12.2) |
| Score | 500 |
| Code Size | 572 Byte |
| Status | AC |
| Exec Time | 22 ms |
| Memory | 3648 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 | 3440 KiB |
| test_00.txt | AC | 9 ms | 3460 KiB |
| test_01.txt | AC | 21 ms | 3464 KiB |
| test_02.txt | AC | 22 ms | 3648 KiB |
| test_03.txt | AC | 22 ms | 3492 KiB |
| test_04.txt | AC | 22 ms | 3496 KiB |
| test_05.txt | AC | 22 ms | 3468 KiB |
| test_06.txt | AC | 22 ms | 3564 KiB |
| test_07.txt | AC | 21 ms | 3444 KiB |
| test_08.txt | AC | 21 ms | 3444 KiB |
| test_09.txt | AC | 21 ms | 3436 KiB |