天乔巴夏、
天乔巴夏、
全部文章
分类
题解(31)
归档
标签
去牛客网
登录
/
注册
天乔巴夏、的博客
全部文章
(共31篇)
题解 | #后缀子串排序#
#include<iostream> #include<string> #include<algorithm> #include<vector> using namespace std; int main() { string s; ...
C++
字符串
2022-01-14
0
206
题解 | #字符串内排序#
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string s; while(cin >> s) ...
C++
字符串
2022-01-14
0
276
题解 | #N的阶乘#
高精度乘法 #include <iostream> #include <vector> using namespace std; // A 高精度整数, b 低精度 123456 * 11 -> 6 * 11 = 66 vector<int> mul(ve...
C++
数学
2022-01-14
3
378
题解 | #String Matching#
#include<iostream> #include<cstring> using namespace std; int cal(string a, string b) { int s = 0; // 0 -> 4 a.len = 8, b.len = 4...
C++
字符串
2022-01-14
0
311
题解 | #A+B for Matrices#
#include<iostream> using namespace std; int nums[105][105]; int main() { int m, n; while(cin >> m >> n) { for...
C++
数组
2022-01-14
0
276
题解 | #质因数的个数#
#include <iostream> #include <cmath> using namespace std; int main() { int n; int ans = 0; while(cin >> n) { ...
C++
数学
2022-01-14
0
250
题解 | #a+b#
高精度加法模板! #include<iostream> #include<vector> #include<algorithm> #include<cstring> using namespace std; vector<int> ad...
C++
2022-01-12
7
376
题解 | #素数#
#include <iostream> #include <cmath> using namespace std; const int N = 1e6+10; bool st[N]; int primes[N], cnt; void get_primes(int n) ...
C++
2022-01-12
0
269
题解 | #素数#
#include<iostream> #include<cmath> using namespace std; const int N = 10010; bool isPrime(int n) { if(n <= 1) return false; f...
C++
2022-01-12
0
326
题解 | #最大公约数#
#include <iostream> #include <cstring> #include <algorithm> #include <vector> using namespace std; int gcd(int a, int b) { ...
C++
2022-01-12
0
235
首页
上一页
1
2
3
4
下一页
末页