Montage.
Montage.
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
Montage.的博客
全部文章
(共2篇)
题解 | #Prime Number#
依次向后判断即可 #include #include #include using namespace std; bool isSu(int n){ int bound = sqrt(n); for(int i=2;i<=bound;i++){ if(n%i==0){ return fa...
C++
2022-01-21
0
379
题解 | #八进制#
先将n转为2进制,再转为8进制。 2进制下每3位化为一位8进制。 #include #include #include using namespace std; int main(){ int n; while(cin>>n){ vector<char> an...
C++
数学
2022-01-20
0
312