Submission #23993338
Source Code Expand
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std;
void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
∧_∧
∧_∧ (´<_` ) Welcome to My Coding Space!
( ´_ゝ`) / ⌒i @hamayanhamayan0
/ \ | |
/ / ̄ ̄ ̄ ̄/ |
__(__ニつ/ _/ .| .|____
\/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/
int A, B;
//---------------------------------------------------------------------------------------------------
void _main() {
cin >> A >> B;
int mi = A;
int ma = A * 6;
if (mi <= B && B <= ma) cout << "Yes" << endl;
else cout << "No" << endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Rolling Dice |
| User | hamayanhamayan |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 1552 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 3552 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_00.txt, sample_01.txt, sample_02.txt |
| All | bound_00.txt, bound_01.txt, bound_02.txt, bound_03.txt, random_00.txt, random_01.txt, sample_00.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| bound_00.txt | AC | 7 ms | 3464 KiB |
| bound_01.txt | AC | 2 ms | 3448 KiB |
| bound_02.txt | AC | 6 ms | 3464 KiB |
| bound_03.txt | AC | 2 ms | 3500 KiB |
| random_00.txt | AC | 2 ms | 3524 KiB |
| random_01.txt | AC | 2 ms | 3552 KiB |
| sample_00.txt | AC | 2 ms | 3448 KiB |
| sample_01.txt | AC | 2 ms | 3464 KiB |
| sample_02.txt | AC | 3 ms | 3460 KiB |