Submission #73672495
Source Code Expand
#include<bits/stdc++.h>
// #include<atcoder/all>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (n); ++i)
template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;}
template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;}
const long long INF = 1LL << 60;
using Graph = vector<vector<int>>;
int gcd(int a, int b){
if(b == 0) return a;
else return gcd(b, a%b);
}
struct Compare {
bool operator()(const pair<ll, int>& a, const pair<ll, int>& b) {
return a.first > b.first;
}
};
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n,m; cin >> n >> m;
int mn = (n+1)/2;
if(m>mn) cout << "No\n";
else cout << "Yes\n";
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Seats 2 |
| User | motomoto0001 |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 799 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 | 3460 KiB |
| 00_sample_01.txt | AC | 1 ms | 3620 KiB |
| 00_sample_02.txt | AC | 1 ms | 3476 KiB |
| 00_sample_03.txt | AC | 1 ms | 3584 KiB |
| 01_test_00.txt | AC | 1 ms | 3584 KiB |
| 01_test_01.txt | AC | 1 ms | 3620 KiB |
| 01_test_02.txt | AC | 1 ms | 3460 KiB |
| 01_test_03.txt | AC | 1 ms | 3480 KiB |
| 01_test_04.txt | AC | 1 ms | 3444 KiB |
| 01_test_05.txt | AC | 1 ms | 3488 KiB |
| 01_test_06.txt | AC | 1 ms | 3476 KiB |
| 01_test_07.txt | AC | 1 ms | 3704 KiB |
| 01_test_08.txt | AC | 1 ms | 3584 KiB |
| 01_test_09.txt | AC | 1 ms | 3500 KiB |
| 01_test_10.txt | AC | 1 ms | 3480 KiB |
| 01_test_11.txt | AC | 1 ms | 3544 KiB |
| 01_test_12.txt | AC | 1 ms | 3564 KiB |