# CHASE7 - Editorial

**URL:** <https://discuss.codechef.com/t/chase7-editorial/126156>\
**Category:** editorial\
**Tags:** editorial, start264\
**Created:** [November 11, 2026, 4:30pm UTC](https://discuss.codechef.com/t/chase7-editorial/126156 "2026-11-11T16:30:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceknight1093](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Post date:** [November 11, 2026, 4:30pm UTC](https://discuss.codechef.com/t/chase7-editorial/126156/1 "2026-11-11T16:30:07Z")

</div>

# PROBLEM LINK:

[Practice](https://www.codechef.com/problems/CHASE7)  
[Contest: Division 1](https://www.codechef.com/START264A/problems/CHASE7)  
[Contest: Division 2](https://www.codechef.com/START264B/problems/CHASE7)  
[Contest: Division 3](https://www.codechef.com/START264C/problems/CHASE7)  
[Contest: Division 4](https://www.codechef.com/START264D/problems/CHASE7)

_ **Author:** _ [raysh07](https://www.codechef.com/users/raysh07)  
_ **Tester:** _ [iceknight1093](https://www.codechef.com/users/iceknight1093)  
_ **Editorialist:** _ [iceknight1093](https://www.codechef.com/users/iceknight1093)

# DIFFICULTY:

TBD

# PREREQUISITES:

None

# PROBLEM:

Is it possible to score R runs within B balls, when you can score at most 6 runs per ball?

# EXPLANATION:

At 6 runs per ball, we can score at most 6B runs in B balls.

So,

- If 6B \lt R there’s no way to reach R at all.  
The answer is `No`.
- Otherwise it’s possible to score enough runs (just score 6 on every ball) and the answer is `Yes`.

# TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

# CODE:

> **Editorialist's code (PyPy3)**
>
> ```python
> r, b = map(int, input().split())
> print('Yes' if 6*b >= r else 'No')
> 
> ```
