最简单易懂的 摘要:解题思路:注意事项:参考代码:#include <stdio.h> //N为总行数,rows为第几行,打印该行数据void printN(int N, int rows){ int first=1;…… 题解列表 2022年02月15日 0 点赞 0 评论 598 浏览 评分:0.0
编写题解 1251: 统计字母个数 摘要:解题思路:注意事项:参考代码:stri='' while True: try: stg='' sti=map(str,i…… 题解列表 2022年02月15日 0 点赞 0 评论 596 浏览 评分:0.0
1256: 诡秘的余数 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(int,input().split()) if a<b: …… 题解列表 2022年02月15日 0 点赞 0 评论 588 浏览 评分:0.0
题解 2002: 计算数字个数 通俗易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){char a[100];int i,n,j=0;gets(a);n=str…… 题解列表 2022年02月15日 0 点赞 0 评论 578 浏览 评分:0.0
编写题解 1257: 超级楼梯 摘要:解题思路:参考代码:def f(x): if x <= 2: return 1 else: return f(x-1) 题解列表 2022年02月15日 0 点赞 0 评论 583 浏览 评分:0.0
二级C语言-平均值计算 通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10],sum=0,cot=0; float b; for(i=0;i<10;i++){ sc…… 题解列表 2022年02月15日 0 点赞 0 评论 568 浏览 评分:0.0
python-连号区间数 摘要:解题思路:建立两层循环。第一层循环为l,第二层循环为r。每次更新区间[l,r]的最小值和最大值。如果(最大值-最小值)= (r-l),则连续区间数量加1。注意事项:参考代码:def f(n): …… 题解列表 2022年02月15日 0 点赞 0 评论 766 浏览 评分:0.0
python-2n皇后问题 解题思路:这道题其实和n皇后的题没有太大的差别。做法是这样的,首先找出黑皇后的所有结果(这里暂时不考虑白皇后)。详细做法可参考我之间写的一篇文章,介绍很详细。https://blog.dotcpp.com/a/83292。那么单独考虑白皇后时结果和单独考虑黑皇后是一样的。 题解列表 2022年02月15日 0 点赞 0 评论 848 浏览 评分:0.0
二级C语言-寻找矩阵最值 有坑!!!!!!! 记得+1!!!!! 摘要:解题思路:注意事项:有坑!!!!!!!记得+1!!!!!参考代码:二级C语言-寻找矩阵最值#include<stdio.h>int main(){ int n,i,j,r=0,l=0,a[10][1…… 题解列表 2022年02月15日 0 点赞 0 评论 516 浏览 评分:0.0
[Sapphire]1124:大小写转换(C语言代码) 摘要:解题思路:大写字母+=32=小写字母参考代码:#include<stdio.h> #include<string.h> int main() { int i; char st…… 题解列表 2022年02月16日 0 点赞 0 评论 592 浏览 评分:0.0