判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long n; scanf("%lld",&n); if(n%3==0 && n%…… 题解列表 2023年01月14日 0 点赞 0 评论 447 浏览 评分:0.0
收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d%d",&n,&m); if(n>=10 ||…… 题解列表 2023年01月14日 0 点赞 0 评论 376 浏览 评分:0.0
骑车与走路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double s1,s2; scanf("%d",&n); s1=…… 题解列表 2023年01月14日 0 点赞 0 评论 345 浏览 评分:0.0
从大到小的顺序输出其中前m大的数 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = list(map(int,input().split()))L.sort(reverse = True…… 题解列表 2023年01月14日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 适合新手 摘要:解题思路:定义两个数组,一个用来接收改变后的排序,(m+i)%n 这个是核心 保证数组末尾的下一位是首位!!!注意事项:参考代码:#include<iostream>#include<cstri…… 题解列表 2023年01月14日 0 点赞 0 评论 340 浏览 评分:0.0
循环求和,一种简单的方法实现 摘要:解题思路:若 n = 5,设 变量 a = 0可推:2 = 2 x 1; (a)22 = 2 x 10 + 2 ( a = 2 * 10 + a)222 = 2 x 100 + 22 ( a = 2 …… 题解列表 2023年01月14日 0 点赞 0 评论 314 浏览 评分:0.0
亲和数(python代码) 摘要:def cal(x): total = 0 for i in range(1,x): if x%i==0: &nb 题解列表 2023年01月14日 0 点赞 2 评论 198 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 新手向 有问必回 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;struct student { string number…… 题解列表 2023年01月14日 0 点赞 0 评论 310 浏览 评分:0.0
编写题解 1051: [编程入门]结构体之成绩统计2 适合新手 有问必答 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;struct student { string number…… 题解列表 2023年01月14日 0 点赞 0 评论 325 浏览 评分:0.0
学生能看懂的c++语言 摘要:解题思路:难点在于如何用计算机模拟人一次次选的过程.有n个人,我们就定义一个长度为n个的数组a[n]不妨将m个元素赋1,其他元素初始化0。用一个for循环一次次地访问这个数组,当m次时,将a[i]赋0…… 题解列表 2023年01月14日 0 点赞 0 评论 367 浏览 评分:0.0