Submission #66168975
Source Code Expand
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<vector>
#include<algorithm>
#include<map>
#include<queue>
#include<string>
#include<set>
#include<utility>
#include<iomanip>
#define ull unsigned long long
#define LL long long
#define ldb long double
using namespace std;
int main(){
//freopen("1.txt", "r", stdin);
ios::sync_with_stdio(0);
cin.tie(0);
// 人的梦想,是不会结束的
int T;
cin >> T;
while(T--){
LL x, y, z;
bool flg = false;
cin >> x >> y >> z;
if(z == 1){
if(x >= y - 1){
cout << "Yes" << "\n";
}
else cout << "No" << "\n";
continue;
}
if(z == 0){
if(y == 1 || x < y - 1){
cout << "No" << "\n";
}
else cout << "Yes" << "\n";
continue;
}
if(2 * z < y){
if(x >= y - z) flg = true;
}
else{
if(x >= z) flg = true;
}
if(flg) cout << "Yes" << "\n";
else cout << "No" << "\n";
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Rivalry |
| User | Gloria_GEM |
| Language | C++ 17 (gcc 12.2) |
| Score | 0 |
| Code Size | 957 Byte |
| Status | WA |
| Exec Time | 38 ms |
| Memory | 3656 KiB |
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 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 | 3484 KiB |
| test_00.txt | WA | 23 ms | 3656 KiB |
| test_01.txt | AC | 37 ms | 3536 KiB |
| test_02.txt | WA | 38 ms | 3620 KiB |
| test_03.txt | WA | 38 ms | 3532 KiB |
| test_04.txt | WA | 38 ms | 3536 KiB |
| test_05.txt | WA | 38 ms | 3536 KiB |
| test_06.txt | WA | 38 ms | 3620 KiB |
| test_07.txt | WA | 36 ms | 3536 KiB |
| test_08.txt | WA | 36 ms | 3404 KiB |
| test_09.txt | WA | 36 ms | 3468 KiB |