3 条题解
-
-2
O(1)水过
思路
暴力出奇迹,打表出省一
解题方法
将0!~20!依次除1~21
复杂度
时间复杂度:
空间复杂度:
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; }
- 1
信息
- ID
- 54
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 1
- 标签
- 递交数
- 405
- 已通过
- 273
- 上传者