P9913 题解
FurippuWRY · · 题解
我们可以从
| 分割情况 | |
|---|---|
| 不用分割。 | |
| 很明显,没法分割。 | |
| 无法分割。 | |
| 可以四等分。 | |
| 无法分割。 | |
| 四等分 |
|
| 类似于 |
|
| 四等分 |
|
| 四等分 |
|
| 四等分 |
|
| 四等分 |
|
| 四等分 |
|
| 四等分 |
由表可以推测,只要
#include<bits/stdc++.h>
using namespace std;
int n, a;
int main() {
cin >> n;
while (n--) {
cin >> a;
if (a != 2 && a != 3 && a != 5) cout << "Yes" << '\n';
else cout << "No" << '\n';
}
return 0;
}