机试秒杀者
机试秒杀者
全部文章
分类
归档
标签
去牛客网
登录
/
注册
机试秒杀者的博客
全部文章
(共60篇)
题解 | 求平均年龄
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { float sum; float num[n]; ...
2025-03-16
0
18
题解 | 字符串排序
#include<bits/stdc++.h> using namespace std; bool cmp(string a,string b) { return a.length()<b.length(); } int main() { int n; ...
2025-03-15
0
15
题解 | 学分绩点
#include<bits/stdc++.h> using namespace std; float GPA(int k) { if(k>=90 && k<=100)return 4.0; else if(85<=k &&...
2025-03-15
1
17
题解 | 后缀子串排序
#include<bits/stdc++.h> using namespace std; // 比较两个字符串的大小 bool isbigger(const string& a, const string& b) { return a > b; // 直接...
2025-03-15
1
16
题解 | 后缀子串排序
#include<bits/stdc++.h> using namespace std; // 比较两个字符串的大小 bool isbigger(const string& a, const string& b) { return a > b; // 直接...
2025-03-15
0
15
题解 | 字符串内排序
#include<bits/stdc++.h> using namespace std; int main() { string str; while(cin>>str) { int len = str.length(); ...
2025-03-15
0
16
题解 | 特殊排序
#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-15
0
14
题解 | a+b
#include<bits/stdc++.h> using namespace std; int chartonum(char a) { return a - '0'; } int bigger(int a, int b) { if (a > b)return ...
2025-03-15
0
18
题解 | 最大的两个数
#include<bits/stdc++.h> using namespace std; int main() { int num[4][5] = {0}; for(int i = 0;i<4;i++) { for(int j = 0;...
2025-03-15
0
13
题解 | 大整数排序
#include<bits/stdc++.h> using namespace std; bool isbigger(string str1,string str2) { int len1 = str1.length(); int len2 = str2.length(...
2025-03-14
0
11
首页
上一页
1
2
3
4
5
6
下一页
末页