机试秒杀者
机试秒杀者
全部文章
分类
归档
标签
去牛客网
登录
/
注册
机试秒杀者的博客
全部文章
(共60篇)
题解 | 阶乘
#include<bits/stdc++.h> using namespace std; //求k的阶乘 int jiecheng(int k) { if(k == 1||k == 0)return 1; else { return k*jiec...
2025-03-17
0
10
题解 | 素数
#include<bits/stdc++.h> using namespace std; bool issushu(int a) { int k = sqrt(a); for(int i = 2;i<=k;i++) { if(a % i =...
2025-03-17
0
12
题解 | 还是A+B
#include<bits/stdc++.h> using namespace std; int main() { int k,l; int c; while(cin>>k>>l>>c) { if(k ...
2025-03-17
0
12
题解 | 简单计算器
#include<bits/stdc++.h> using namespace std; //判断字符是否为数字字符 bool isnum(char a) { return a>='0'&&a<='9'; } //判断是否为运算符 bool isyu...
2025-03-17
0
19
题解 | 首字母大写
#include<bits/stdc++.h> using namespace std; //判断是否为小写字母 bool issmall(char a) { if(a>='a'&&a<='z') { return true;...
2025-03-17
0
15
题解 | 买房子
#include<bits/stdc++.h> using namespace std; int main() { int N; float K; while(cin>>N>>K) { int k = 1; ...
2025-03-17
0
13
题解 | 统计单词
#include<bits/stdc++.h> using namespace std; int main() { string str; while(getline(cin,str)) { int len = str.length(); ...
2025-03-16
0
13
题解 | 成绩排序
#include<bits/stdc++.h> using namespace std; struct Student{ string name; int age; int score; }; bool cmp(Student a,Student b) {...
2025-03-16
0
15
题解 | A + B
#include<bits/stdc++.h> using namespace std; string str[10] = {"zero","one","two","three","four&qu...
2025-03-16
0
15
题解 | 整数奇偶排序
#include<bits/stdc++.h> using namespace std; //快速排序 int devide(int num[],int l,int r) { int mid = num[l]; while(l<r) { w...
2025-03-16
0
13
首页
上一页
1
2
3
4
5
6
下一页
末页