[编程入门]成绩评定 题解 摘要:解题思路:直接用if语句编写就可以。注意if的括号后不要加;。输入X的前面要加上&。参考代码:#include <stdio.h>int main(){ int x; scanf("%d", &x);…… 题解列表 2022年11月26日 0 点赞 0 评论 270 浏览 评分:0.0
C语言 自定义函数之数字后移& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 30 //Long为数组最大长度int main(){ void move_nu…… 题解列表 2022年11月26日 0 点赞 0 评论 260 浏览 评分:0.0
c语言 一个数组即可搞定 简洁 摘要:解题思路:使用一个数组即可,下标映射注意事项:参考代码:#include<stdio.h> #include<limits.h> int main() { int arr[5000…… 题解列表 2022年11月26日 0 点赞 0 评论 308 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移(有细致的讲解) 摘要:解题思路:注意事项:参考代码:# index,在列表某一确定位置插入确定的东西(insert() 方法在指定位置插入指定的值。),# pop() 函数用于移除列表中的一个元素(默认最后一个元素),并且…… 题解列表 2022年11月26日 0 点赞 0 评论 360 浏览 评分: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 评论 322 浏览 评分: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 评论 326 浏览 评分:0.0
优化求解---第n小的质数 摘要:注意事项:优化求解过程。优化1:第二层for循环中的sqrt(i),因数都是成对出现的。比如,100的因数有:1和100,2和50,4和25,5和20,10和10。看出来没有?成对的因数,其中一个必然…… 题解列表 2022年11月27日 0 点赞 0 评论 414 浏览 评分:0.0
2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:while 1: try: a = str(input()) if ord(a) % 2 == 0: print(…… 题解列表 2022年11月27日 0 点赞 0 评论 441 浏览 评分:0.0
2782: 整数大小比较 摘要:while 1: try: while 1: x,y = map(int,input().strip().split()) if (x …… 题解列表 2022年11月27日 0 点赞 0 评论 442 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; char str[100]; scanf("%d",&n); ge…… 题解列表 2022年11月27日 0 点赞 0 评论 255 浏览 评分:0.0