挂耳coffe
挂耳coffe
全部文章
分类
归档
标签
去牛客网
登录
/
注册
挂耳coffe的博客
全部文章
(共33篇)
题解 | Freckles
#include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> using namespace std; str...
2025-03-07
0
39
题解 | 小白鼠排队
#include <iostream> #include <string> #include <cstdio> #include <algorithm> using namespace std; const int N = 100; int n;...
2025-03-07
0
34
题解 | 特殊乘法
#include <iostream> #include <string> #include <cstdio> #include <algorithm> #include <cmath> using namespace std; //利...
2025-03-07
0
30
题解 | n的阶乘
#include <iostream> using namespace std; long long res(int k) { if (k == 1)return 1; else return k * res(k - 1); } int main() { in...
2025-03-07
0
34
题解 | 火星A+B
#include <stdio.h>//这题真没必要死磕,看通过率话就知道这题根本不是入门水平 #include <string.h> void su(int arr[]) { //将前25个素数(1,2,3,5,7...)赋给arr数组(从下标1开始) ...
2025-03-07
0
28
题解 | Powerful Calculator
#include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; // 去除前导零 string removeLead...
2025-03-07
0
31
题解 | 字符串内排序
#include <iostream> #include <string> #include <cstdio> #include <algorithm> using namespace std; //冒泡排序时间复杂度为n ^ 2,字符串长度<...
2025-03-06
0
30
题解 | xxx定律
#include <iostream> using namespace std; int main() { int n,res = 0; while(cin >> n) { while(n != 1) { ...
2025-03-06
0
29
题解 | 后缀子串排序
#include <iostream> #include <string> #include <cstdio> #include <algorithm> using namespace std; string str;//定义子串,需要知道获取字串...
2025-03-06
0
32
题解 | Digital Roots
#include <iostream> #include <cstdio> #include <string> #include <algorithm> using namespace std; //输入的整数最多十位数,通过递归的次数应该不会太高...
2025-03-06
0
40
首页
上一页
1
2
3
4
下一页
末页