C语言 自定义函数之数字后移& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 30 //Long为数组最大长度int main(){ void move_nu…… 题解列表 2022年11月26日 0 点赞 0 评论 494 浏览 评分:0.0
c语言 一个数组即可搞定 简洁 摘要:解题思路:使用一个数组即可,下标映射注意事项:参考代码:#include<stdio.h> #include<limits.h> int main() { int arr[5000…… 题解列表 2022年11月26日 0 点赞 0 评论 610 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移(有细致的讲解) 解题思路:注意事项:参考代码:#index,在列表某一确定位置插入确定的东西(insert()方法在指定位置插入指定的值。),#pop()函数用于移除列表中的一个元素(默认最后一个元素),并且返回该元素的值。n=int(input())index=list(map(int, 题解列表 2022年11月26日 0 点赞 0 评论 664 浏览 评分:0.0
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[500][500]; int i,j,m,n; int sum=0; scanf("%d %d",&…… 题解列表 2022年11月27日 0 点赞 0 评论 608 浏览 评分:0.0
常规解法级数求和 摘要:结果:i = 1835421 Sn = 15.000000参考代码:#include<stdio.h>int main() { int k; double Sn = 0; scanf("%d",&k)…… 题解列表 2022年11月27日 0 点赞 0 评论 573 浏览 评分:0.0
优化求解---第n小的质数 注意事项:优化求解过程。优化1:第二层for循环中的sqrt(i),因数都是成对出现的。比如,100的因数有:1和100,2和50,4和25,5和20,10和10。看出来没有?成对的因数,其中一个必然小于等于100的开平方,另一个大于等于100的开平方。 题解列表 2022年11月27日 0 点赞 0 评论 664 浏览 评分:0.0
2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:while 1: try: a = str(input()) if ord(a) % 2 == 0: print(…… 题解列表 2022年11月27日 1 点赞 0 评论 667 浏览 评分:0.0
2782: 整数大小比较 摘要:while 1: try: while 1: x,y = map(int,input().strip().split()) if (x …… 题解列表 2022年11月27日 0 点赞 0 评论 732 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; char str[100]; scanf("%d",&n); ge…… 题解列表 2022年11月27日 0 点赞 0 评论 482 浏览 评分:0.0
温度转换答案C语言 摘要:解题思路:注意事项:注意5/9参考代码:#include<stdio.h>int main(){ float c,n; scanf("%f",&n); c=5.0/9*(n-32); prin…… 题解列表 2022年11月27日 0 点赞 0 评论 538 浏览 评分:0.0