3 条题解
-
0
思路
打表。
提前算好。
时间复杂度:
空间复杂度:
Code
#include<bits/stdc++.h> using namespace std; string s[20]={"YES","NO","NO","NO","NO", "YES","NO","YES","YES","YES", "NO","YES","NO","YES","YES", "YES","NO","YES","NO","YES"}; int main() { int n; cin>>n; cout<<s[n]<<endl; return 0; }
信息
- ID
- 54
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 1
- 标签
- 递交数
- 405
- 已通过
- 273
- 上传者