题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:1.将 String 转为 StringBuilder2.使用 StringBuilder 自带的 reverse() 方法倒置字符串3.使用构造方法 String() 将倒置后的字符串转化…… 题解列表 2022年02月05日 0 点赞 0 评论 603 浏览 评分:9.9
Hifipsysta-1180-不容易系列(C++代码)递归法 摘要:```cpp #include using namespace std; int a_(int n){ if(n==0){ return 3; } …… 题解列表 2022年02月05日 0 点赞 0 评论 399 浏览 评分:0.0
python-等腰三角形 摘要:解题思路:从题目中我们知道0~9每个数字占一位。①先生成1~1000的数字字符串,('123456789101112131415161718192021......'),这里记为A。②…… 题解列表 2022年02月05日 0 点赞 0 评论 648 浏览 评分:9.9
最多约数问题(这个代码短,而且容易理解) 摘要:解题思路:把1到5000000之间每个数的约数的个数全都求出来,放在一个数组里。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,j,max=0;…… 题解列表 2022年02月05日 1 点赞 3 评论 757 浏览 评分:7.3
IP判断(Python) 摘要:解题思路:注意事项:参考代码:while(True): List=input() if(List=='End of file'): break else…… 题解列表 2022年02月05日 0 点赞 1 评论 567 浏览 评分:9.9
数组插入处理 python 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))b = int(input())a.append(b)a.sort()for i in a: p…… 题解列表 2022年02月05日 0 点赞 0 评论 439 浏览 评分:2.0
Hifipsysta-1159-偶数求和(C++代码)最后不足m的要查漏补缺 摘要: ```cpp #include #include #include using namespace std; const int max_len=100; float arr[ma…… 题解列表 2022年02月05日 0 点赞 0 评论 268 浏览 评分:0.0
DNA( Python )哈哈小白只懂这么写 摘要:解题思路: 先生成二维列表,再把二维列表弄成符合题目意思的内容注意事项: 注意格式输出参考代码: n=int(input())while(n>0): a,b=map(int,input().…… 题解列表 2022年02月05日 0 点赞 0 评论 583 浏览 评分:9.9
日期排序(巧用scanf形式求解) 摘要:解题思路:利用scanf对输入形式的严格要求求解注意事项:参考代码:#include<stdio.h>#include<algorithm>using namespace std;struct dat…… 题解列表 2022年02月05日 0 点赞 0 评论 699 浏览 评分:9.9
Hifipsysta-1173-计算球体积(C++代码) 摘要:```cpp #include #include using namespace std; float compute_volume(float r){ return (4.0/…… 题解列表 2022年02月05日 0 点赞 0 评论 335 浏览 评分:0.0