核电站问题(根据前四个样例摸清楚答案规律) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;int main(){ …… 题解列表 2022年02月05日 0 点赞 0 评论 293 浏览 评分:9.9
杨辉三角(相当于一个矩阵的下三角,利用矩阵的知识就可以了) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int num[30][30] = { 1 }; int main(){ int n;…… 题解列表 2022年02月05日 0 点赞 0 评论 238 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:1.将 String 转为 StringBuilder2.使用 StringBuilder 自带的 reverse() 方法倒置字符串3.使用构造方法 String() 将倒置后的字符串转化…… 题解列表 2022年02月05日 0 点赞 0 评论 561 浏览 评分:9.9
Hifipsysta-1180-不容易系列(C++代码)递归法 摘要:```cpp #include using namespace std; int a_(int n){ if(n==0){ return 3; } …… 题解列表 2022年02月05日 0 点赞 0 评论 351 浏览 评分:0.0
python-等腰三角形 摘要:解题思路:从题目中我们知道0~9每个数字占一位。①先生成1~1000的数字字符串,('123456789101112131415161718192021......'),这里记为A。②…… 题解列表 2022年02月05日 0 点赞 0 评论 598 浏览 评分:9.9
最多约数问题(这个代码短,而且容易理解) 摘要:解题思路:把1到5000000之间每个数的约数的个数全都求出来,放在一个数组里。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,j,max=0;…… 题解列表 2022年02月05日 0 点赞 3 评论 724 浏览 评分:7.3
IP判断(Python) 摘要:解题思路:注意事项:参考代码:while(True): List=input() if(List=='End of file'): break else…… 题解列表 2022年02月05日 0 点赞 1 评论 540 浏览 评分: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 评论 397 浏览 评分: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 评论 244 浏览 评分:0.0
DNA( Python )哈哈小白只懂这么写 摘要:解题思路: 先生成二维列表,再把二维列表弄成符合题目意思的内容注意事项: 注意格式输出参考代码: n=int(input())while(n>0): a,b=map(int,input().…… 题解列表 2022年02月05日 0 点赞 0 评论 555 浏览 评分:9.9