提出 #66168975
ソースコード 拡げる
#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";
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Rivalry |
| ユーザ | Gloria_GEM |
| 言語 | C++ 17 (gcc 12.2) |
| 得点 | 0 |
| コード長 | 957 Byte |
| 結果 | WA |
| 実行時間 | 38 ms |
| メモリ | 3656 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 500 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |