Submission #19314499
Source Code Expand
#include <bits/stdc++.h>
#define rep(i, N) for(int i = 0; i < (int)N; i++)
#define crep(i, l, r) for(int i = l; i <= r; i++)
using namespace std;
typedef long long ll;
typedef tuple<int,int,int> T;
typedef pair<int,int> P;
typedef vector<int> V;
typedef vector<ll> VLL;
const int INF = 1000000000; //10^9, 2*INF
const ll LLINF = (1LL << 60); // > 10^18 ll 2*LLINF
int main() {
int x,y;
cin >> x >> y;
//VLL a(n); rep(i, n) scanf("%lld", &a[i]);
if(x < y) swap(x,y);
if(x < y+3) puts("Yes");
else puts("No");
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Three-Point Shot |
| User | samari06 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 574 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3636 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | close_00.txt, close_01.txt, close_02.txt, close_03.txt, close_04.txt, close_05.txt, handmade_00.txt, handmade_01.txt, handmade_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| close_00.txt | AC | 6 ms | 3636 KiB |
| close_01.txt | AC | 2 ms | 3444 KiB |
| close_02.txt | AC | 2 ms | 3520 KiB |
| close_03.txt | AC | 2 ms | 3520 KiB |
| close_04.txt | AC | 2 ms | 3408 KiB |
| close_05.txt | AC | 2 ms | 3436 KiB |
| handmade_00.txt | AC | 2 ms | 3596 KiB |
| handmade_01.txt | AC | 2 ms | 3552 KiB |
| handmade_02.txt | AC | 2 ms | 3520 KiB |
| random_00.txt | AC | 1 ms | 3552 KiB |
| random_01.txt | AC | 2 ms | 3528 KiB |
| random_02.txt | AC | 2 ms | 3440 KiB |
| random_03.txt | AC | 2 ms | 3524 KiB |
| random_04.txt | AC | 2 ms | 3548 KiB |
| random_05.txt | AC | 2 ms | 3568 KiB |
| sample_01.txt | AC | 2 ms | 3588 KiB |
| sample_02.txt | AC | 2 ms | 3568 KiB |
| sample_03.txt | AC | 3 ms | 3588 KiB |