Dastro
Dastro
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Dastro的博客
全部文章
/ 题解
(共19篇)
题解 | #在字符串中找出连续最长的数字串#
#include<bits/stdc++.h> using namespace std; string str; int main() { while(cin >> str) { int len = str.length(); ...
C++
2022-06-04
0
315
题解 | #名字的漂亮度#
注意初始化和数组置零 #include<bits/stdc++.h> using namespace std; bool cmp(int a, int b) { return a > b; } int main() { int n; scanf("%d", ...
C++
2022-06-02
0
234
题解 | #求解立方根#
没用二分,但是用了二分差值: val-i * i * i是线性增减的思想 如果这个差值在左右两个间隔为0.1的数间 比较 val- i * i * i的值, 它是最小的,那么i的立方最接近val #include<bits/stdc++.h> using namespace std; ...
C++
2022-06-02
0
370
题解 | #字符串加解密#
#include<bits/stdc++.h> using namespace std; char table[26] = { 'a','b','c','d','e', 'f','g','h','i','j', 'k','l','m','n','o', '...
C++
2022-06-02
0
245
题解 | #字符串加密#
#include<bits/stdc++.h> using namespace std; const int maxn = 105; char alpha[26] = { 'a','b','c','d','e', 'f','g','h','i','j', 'k',...
C++
2022-06-02
0
259
题解 | #查找兄弟单词#
#include<bits/stdc++.h> using namespace std; const int maxn = 1010; const int maxlen = 10; int n, k; string dic[maxn]; bool isbro[maxn] = {false...
C++
2022-06-02
0
189
题解 | #迷宫问题#
#include<bits/stdc++.h> using namespace std; const int maxn = 10; const int maxstep = 100; struct node{ int x, y; int step; int a[ma...
C++
2022-06-01
0
258
题解 | #字符串排序#
#include<bits/stdc++.h> using namespace std; struct node{ char c; int pos; }nd; bool cmp(node a,node b) { if(isalpha(a.c)&&i...
C++
2022-05-31
0
283
题解 | #密码验证合格程序#
#include<bits/stdc++.h> using namespace std; set<string> s; int main() { string str; while(cin>>str) { //1 ...
C++
2022-05-31
0
275
首页
上一页
1
2
下一页
末页