Submission #73676872
Source Code Expand
#ifndef ONLINE_JUDGE
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T>
using vc = vector<T>;
template <typename T>
using vv = vc<vc<T>>;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(v) (v).begin(), (v).end()
#define vc_unique(v) v.erase(unique(v.begin(), v.end()), v.end()) // 重複削除(ソート後限定)
#define next_p(v) next_permutation(v.begin(), v.end()) // 辞書順の次(ソート後限定)
#define keta(n) cout << fixed << setprecision(n) // 小数点以下の桁数指定
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll n, m;
cin >> n >> m;
n = (n + 1) / 2;
if (n >= m)
{
cout << "Yes\n";
}
else
{
cout << "No\n";
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Seats 2 |
| User | Rine78 |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 941 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3704 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3480 KiB |
| 00_sample_01.txt | AC | 1 ms | 3656 KiB |
| 00_sample_02.txt | AC | 1 ms | 3704 KiB |
| 00_sample_03.txt | AC | 1 ms | 3632 KiB |
| 01_test_00.txt | AC | 1 ms | 3608 KiB |
| 01_test_01.txt | AC | 1 ms | 3632 KiB |
| 01_test_02.txt | AC | 1 ms | 3484 KiB |
| 01_test_03.txt | AC | 1 ms | 3476 KiB |
| 01_test_04.txt | AC | 1 ms | 3484 KiB |
| 01_test_05.txt | AC | 1 ms | 3412 KiB |
| 01_test_06.txt | AC | 1 ms | 3612 KiB |
| 01_test_07.txt | AC | 1 ms | 3524 KiB |
| 01_test_08.txt | AC | 1 ms | 3484 KiB |
| 01_test_09.txt | AC | 1 ms | 3524 KiB |
| 01_test_10.txt | AC | 1 ms | 3564 KiB |
| 01_test_11.txt | AC | 1 ms | 3632 KiB |
| 01_test_12.txt | AC | 1 ms | 3532 KiB |