C++[编程入门]数字的处理与判断 摘要:解题思路:用pow函数解决各自输出问题注意事项:参考代码:#include#includeusing namespace std;int main(){ int x; cin>>x; int i=0,…… 题解列表 2021年12月11日 0 点赞 0 评论 868 浏览 评分:9.9
[编程入门]水仙花数判断 3个for循环 foriinrange(10):forjinrange(10):forkinrange(10):a=i**3+j**3+k**3b=i*100+j*10+kifa==bandb>=100:print(b) 题解列表 2021年12月11日 0 点赞 0 评论 815 浏览 评分:9.9
1047: [编程入门]报数问题 摘要:import java.io.*; /** * 公式法直接解决。 */ public class Main { public static BufferedReader …… 题解列表 2021年12月11日 0 点赞 0 评论 988 浏览 评分:9.9
理解怎样在判断时只输出一次 摘要:解题思路:因为数组是已排列好的,所以只需要找出需要插入的位置,通过循环比较找出位置,在循环中判段循环注意只输出一次。即可注意事项:参考代码:#include<stdio.h>int main(){in…… 题解列表 2021年12月12日 0 点赞 0 评论 575 浏览 评分:9.9
使用队列思想解题(JAVA代码) 摘要:解题思路:* 思路: * * 整个字符串可以看成很多段无重复的字串重叠拼接而成 * 只要筛选出最长的字串就可以了 * 如:asdfgdfg 字串是:asdfg,fgd,gdf,dfg * *…… 题解列表 2021年12月12日 0 点赞 0 评论 633 浏览 评分:9.9
编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 634 浏览 评分:9.9
1441: 蓝桥杯2013年第四届真题-幸运数 m,n=map(int,input().strip().split())num=1#num表示挑当前序列的第几个数为幸运数字。num=1从挑第二个数字开始,l[num].l=[iforiinrange(n)ifi%2==1]ls=[xforxinlifx>m]whilenum 题解列表 2021年12月13日 0 点赞 0 评论 712 浏览 评分:9.9 1442: 蓝桥杯2013年第四届真题-打印十字图 n=int(input())l=[['.']*(4*n+5+1)for_inrange(4*n+5+1)]l[2*n+3][2*n+3]='$'l[2*n+3][2*n+1]='$'l[2*n+3][2*n+2]='$'l[2*n+3][2*n+4]='$'l[2*n+3][2*n+5]='$'l[2 题解列表 2021年12月13日 0 点赞 0 评论 737 浏览 评分:9.9 题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 1184 浏览 评分:9.9 编写题解 1017: [编程入门]完数的判断(C语言版) 摘要:解题思路:利用数组以及循环注意事项:要注意效率参考代码:#include<stdio.h>#define N 100int main(){ int n, i, j, sum, a[N], k; …… 题解列表 2021年12月14日 0 点赞 0 评论 580 浏览 评分:9.9 « 12...4957495849594960496149624963...59125913 »
1442: 蓝桥杯2013年第四届真题-打印十字图 n=int(input())l=[['.']*(4*n+5+1)for_inrange(4*n+5+1)]l[2*n+3][2*n+3]='$'l[2*n+3][2*n+1]='$'l[2*n+3][2*n+2]='$'l[2*n+3][2*n+4]='$'l[2*n+3][2*n+5]='$'l[2 题解列表 2021年12月13日 0 点赞 0 评论 737 浏览 评分:9.9
题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 1184 浏览 评分:9.9
编写题解 1017: [编程入门]完数的判断(C语言版) 摘要:解题思路:利用数组以及循环注意事项:要注意效率参考代码:#include<stdio.h>#define N 100int main(){ int n, i, j, sum, a[N], k; …… 题解列表 2021年12月14日 0 点赞 0 评论 580 浏览 评分:9.9