字符求(C语言代码) 摘要:解题思路: 2^32次方有点大 用longlong定义的话求余比较麻烦,所以就用字符串,再将字符化为数字求和注意事项: 参考代码:#include<stdlib.h> #include<str…… 题解列表 2020年09月26日 0 点赞 0 评论 778 浏览 评分:0.0
[编程入门]第一个HelloWorld程序!-题解(双题解,Python代码) 摘要:题解一: ```python print("**************************") print("Hello World!") print("****************…… 题解列表 2020年09月26日 0 点赞 0 评论 1593 浏览 评分:7.8
[竞赛入门]简单的a+b-题解(双题解,Python代码) 摘要:题解一: ```python while True: #while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用…… 题解列表 2020年09月26日 0 点赞 0 评论 2848 浏览 评分:8.0
三位数分解-题解(C++代码) 摘要:解题思路:递归注意事项:参考代码:#include<iostream>using namespace std;void f(int);int main(){ int x; cin >> x; f(x)…… 题解列表 2020年09月26日 0 点赞 0 评论 571 浏览 评分:5.5
蛇行矩阵-题解(C语言代码) 摘要: #蛇形矩阵问题 ##解题思路:这道题我没有想大佬们一样按行找数的规律,这里我用了一个可以自增的count不断为数组元素赋值即:count从2开始变化(a[0][0]=1需要自己赋),我们发现,a…… 题解列表 2020年09月26日 0 点赞 0 评论 473 浏览 评分:0.0
IP判断-题解(C++代码) 摘要:参考代码:#include#include#includeusing namespace std; string data[10000]; bool flag; int sum,t; int …… 题解列表 2020年09月26日 0 点赞 0 评论 593 浏览 评分:0.0
三角形-题解(C语言代码)小试牛刀 摘要:#include<bits/stdc++.h> using namespace std; int t,n; int a[100][100]; int main(){ cin>>t; w…… 题解列表 2020年09月26日 0 点赞 0 评论 550 浏览 评分:0.0
DNA-题解(C++代码) 摘要:解题思路: 可以将整个DNA链看成是一个个小的DNA片段组合在一起的,先用数组存储一个小的DNA片段,然后可以选择一种输出方式。先将第一个DNA片段正常输出,其他的所有DNA片段均不输出第一行。…… 题解列表 2020年09月26日 0 点赞 0 评论 462 浏览 评分:0.0
蓝桥杯算法提高-能量项链-题解——先吃掉最小数字 摘要:/* 4 2 3 5 10 (2,3)(3,5)(5,10) (10,2) (1) 最大能量的规律是先把数字小的合并,最后剩下两个最大的 10-2-3—————(10,3)~60 10…… 题解列表 2020年09月26日 0 点赞 1 评论 644 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:# MarkDown编辑器基本使用说明 #include #include //求Sn=a+aa+aaa+…+aa…aaa(有n个a)之值,其中a是一个数字,为2。 例如,n=5时=2+…… 题解列表 2020年09月26日 0 点赞 0 评论 521 浏览 评分:9.9