C语言简单思路的代码 摘要:解题思路:根据n与3的关系来做注意事项:参考代码:int main(){ int n,late; scanf("%d", &n); int a[1000]; for (int i = 0; i < n…… 题解列表 2023年11月18日 0 点赞 2 评论 164 浏览 评分:7.3
[编程入门]自定义函数处理素数 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s,j,i; scanf("%d",&s); j=s; if(s==2) pri…… 题解列表 2023年11月18日 0 点赞 0 评论 148 浏览 评分:0.0
优质题解 集合划分,利用递归关系 摘要:解题思路:首先找出递归关系,一个元素n,分为k份的集合,可以来自n-1个元素,k份集合多了一个元素,将新元素随机加到任何一份中,或,n-1个元素,k-1份,新元素单独作为一份,用数学关系式表示:f(n…… 题解列表 2023年11月18日 0 点赞 0 评论 834 浏览 评分:10.0
[编程入门]矩阵对角线求和 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3],i,j,s,w; s=0; w=0; for(i=0;i<3;i…… 题解列表 2023年11月18日 0 点赞 0 评论 178 浏览 评分:0.0
: 计算邮资最简单方法 摘要:解题思路:用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int j,n;//重,钱 char ch;//加不加急 scan…… 题解列表 2023年11月18日 0 点赞 0 评论 553 浏览 评分:9.9
我这个有问题,有大佬吗帮忙看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i=2,count=0,c=0; scanf("%d",&a); /…… 题解列表 2023年11月18日 0 点赞 2 评论 544 浏览 评分:8.0
[编程入门]宏定义之闰年判断 def模块版 摘要:解题思路:注意事项:参考代码:def LEAP_YEAR(y): if y%400==0 or (y%4==0 and y%100!=0) : print('L')…… 题解列表 2023年11月18日 0 点赞 0 评论 227 浏览 评分:0.0
2790: 分段函数 更简洁版本 摘要:解题思路:注意事项:参考代码:a=float(input())y=0if 0<=a<5: y=-a+2.5elif 5<=a<10: y=2-1.5*(a-3)*(a-3)elif 10<…… 题解列表 2023年11月18日 0 点赞 0 评论 222 浏览 评分:0.0
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 461 浏览 评分:9.9
hello,world题解! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"Hello,World!"; …… 题解列表 2023年11月18日 0 点赞 0 评论 383 浏览 评分:6.0