1687: 数据结构-字符串连接 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>>b){ …… 题解列表 2021年12月23日 0 点赞 0 评论 337 浏览 评分:0.0
1206: 字符串问题 摘要:这题就是字符串逆序,使用 reverse 函数。#include<bits/stdc++.h> using namespace std; int main(){ string s;…… 题解列表 2021年12月23日 0 点赞 0 评论 317 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h> using namespace std; int main(){ string s,temp;…… 题解列表 2021年12月23日 0 点赞 0 评论 334 浏览 评分:0.0
[编程入门]迭代法求平方根 摘要:解题思路:while循环注意事项:最后保留三位小数参考代码:#include"stdio.h"#include"math.h"int main(){ double m,n,a; scanf("%lf"…… 题解列表 2021年12月23日 0 点赞 2 评论 501 浏览 评分:9.9
[编程入门]自由下落的距离计算 摘要:解题思路:找规律 借助画图工具来进行找规律100 50 50 25 25 12 .5 12.5.........注意事项:注意要保留两位小数参考代码:m,n=map(int,input().split…… 题解列表 2021年12月23日 0 点赞 0 评论 559 浏览 评分:9.9
随便写写,看看就行 摘要:解题思路:瞎写的注意事项:参考代码:#include<stdio.h> char b[200];char* fanzhuan(char *p){ int i=0; while(*p) { p++;i+…… 题解列表 2021年12月23日 0 点赞 0 评论 322 浏览 评分:9.9
优质题解 2129: 信息学奥赛一本通T1265- 最长公共子序列 [dp](java代码) 摘要:解题思路: 以二维数组的方式遍历两个字符串,行和列要加一,方便计算, 当遍历的两个字符相同时,就代表他两个字符串…… 题解列表 2021年12月23日 0 点赞 0 评论 970 浏览 评分:8.0
优质题解 2086: 蓝桥杯算法提高VIP-最长公共子序列 [dp] (java代码) 摘要: 解题思路: 以二维数组的方式遍历两个字符串,行和列要加一,方便计算, 当遍历的两个字符相同时,就代表他两个字符串中都…… 题解列表 2021年12月23日 0 点赞 0 评论 773 浏览 评分:9.9
1470: 蓝桥杯基础练习VIP-时间转换 摘要:或许我们不需要开辟太多变量,使用取余和printf就可以了参考代码:#include <stdio.h> int main () { int x; scanf("%d",&x…… 题解列表 2021年12月23日 0 点赞 0 评论 462 浏览 评分:9.9
1093: 字符逆序 摘要:直接用 reverse 函数将字符串逆序。#include <bits/stdc++.h> using namespace std; int main() { string s;…… 题解列表 2021年12月23日 0 点赞 0 评论 293 浏览 评分:0.0