蛇行矩形,极简单做法!(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100],m=1; scanf("%d", &n); for (i = 0; …… 题解列表 2021年11月03日 0 点赞 0 评论 401 浏览 评分:9.9
[编程入门]求和训练---for循环---(Python) 摘要:```python a,b,c=map(int,input().split()) sum1=0 for i in range(1,a+1): sum1+=i for i in ran…… 题解列表 2021年11月03日 0 点赞 0 评论 752 浏览 评分:9.9
数字逆序输出,秒掉 摘要:解题思路:,我们要知道,逆序输出的定义。如:输入1 4 2 5 3 5这六个数,输出就是5 3 5 2 4 1。逆序输出并不代表按照数字大小等因素来决定,只是将它从右到左输出出来注意事项:参考代码:#…… 题解列表 2021年11月03日 0 点赞 1 评论 356 浏览 评分:9.9
适合新手理解的c++ 摘要:#include<iostream>using namespace std;int add(int a,int b,int c){ if(a>b) { while(a%b!=0) { c=a%…… 题解列表 2021年11月03日 0 点赞 0 评论 777 浏览 评分:9.9
[编程入门]有规律的数列求和---for循环---(Python) 摘要:Python a等于b,b等于a+b ```python n=int(input()) a,b=1,2 sum1=0 for i in range(n): sum1+=float…… 题解列表 2021年11月03日 0 点赞 0 评论 568 浏览 评分:9.9
[编程入门]等差数列---for循环---(Python) 摘要:Python 每个数相差了3,所有每次循环对s都加上3用sum累加 ```python n=int(input()) sum=2 s=2 for i in range(1,n): …… 题解列表 2021年11月03日 0 点赞 0 评论 1324 浏览 评分:9.9
[编程入门]同因查找---for循环---(Python) 摘要:```python for i in range(10,1001): if i%2==0 and i%3==0 and i%7==0: print(i) ``` 通过…… 题解列表 2021年11月03日 0 点赞 1 评论 1108 浏览 评分:9.9
2^k进制数代码详细说明 摘要:解题思路:找到规律即可注意事项:主要要注意分段后可能剩下的不能组成k位的数值取值情况参考代码:import mathk,w=map(int,input().split())a=math.ceil(w/…… 题解列表 2021年11月03日 0 点赞 0 评论 613 浏览 评分:9.9
K-进制数 递归算法,10行C++代码,满分解决 摘要:解题思路: 假设K=10,first0(1)表示当N为1,最高位为0时满足条件的数量,first1(1)表示N为1,最高位不为0(即1~K-1)时满足条件的数量: 1、当N=1时,firs…… 题解列表 2021年11月03日 0 点赞 0 评论 778 浏览 评分:9.9
2544,好懂的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,N,sum=0; scanf("%d",&N); for(i=1;i<=N;…… 题解列表 2021年11月03日 0 点赞 0 评论 995 浏览 评分:9.9