提出 #66162485
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
#define xx first
#define yy second
#define PB push_back
#define MP make_pair
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define rep(i, a, b) for(int i = a; i < (b); ++i)
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
signed main() {
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
int T;
cin >> T;
while ( T-- ) {
int x, y, z;
cin >> x >> y >> z;
if ( z == 0 ) {
if ( y%2 ) {
cout << "No\n";
continue;
}
}
if ( (y+1)/2 > x ) {
cout << "No\n";
continue;
}
if ( z > x ) {
cout << "No\n";
continue;
}
cout << "Yes\n";
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Rivalry |
| ユーザ | din2009siuc |
| 言語 | C++ 20 (gcc 12.2) |
| 得点 | 500 |
| コード長 | 903 Byte |
| 結果 | AC |
| 実行時間 | 40 ms |
| メモリ | 3584 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 500 / 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 | 3396 KiB |
| test_00.txt | AC | 21 ms | 3540 KiB |
| test_01.txt | AC | 33 ms | 3400 KiB |
| test_02.txt | AC | 36 ms | 3476 KiB |
| test_03.txt | AC | 35 ms | 3584 KiB |
| test_04.txt | AC | 40 ms | 3480 KiB |
| test_05.txt | AC | 35 ms | 3468 KiB |
| test_06.txt | AC | 35 ms | 3476 KiB |
| test_07.txt | AC | 34 ms | 3484 KiB |
| test_08.txt | AC | 34 ms | 3540 KiB |
| test_09.txt | AC | 34 ms | 3424 KiB |