优质题解 集合划分,利用递归关系 摘要:解题思路:首先找出递归关系,一个元素n,分为k份的集合,可以来自n-1个元素,k份集合多了一个元素,将新元素随机加到任何一份中,或,n-1个元素,k-1份,新元素单独作为一份,用数学关系式表示:f(n…… 题解列表 2023年11月18日 0 点赞 0 评论 1121 浏览 评分: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 评论 371 浏览 评分:0.0
: 计算邮资最简单方法 摘要:解题思路:用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int j,n;//重,钱 char ch;//加不加急 scan…… 题解列表 2023年11月18日 0 点赞 0 评论 777 浏览 评分:9.9
我这个有问题,有大佬吗帮忙看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i=2,count=0,c=0; scanf("%d",&a); /…… 题解列表 2023年11月18日 0 点赞 2 评论 739 浏览 评分: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 评论 421 浏览 评分: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 评论 428 浏览 评分:0.0
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 667 浏览 评分:9.9
hello,world题解! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"Hello,World!"; …… 题解列表 2023年11月18日 0 点赞 0 评论 561 浏览 评分:6.0
2789: 骑车与走路Python 摘要:解题思路:注意事项:参考代码:a=int(input())bike=(a/3)+27+23walk=a/1.2if bike>walk: print('Walk')elif bi…… 题解列表 2023年11月18日 0 点赞 0 评论 524 浏览 评分:6.0
治炼金属python题解 摘要:解题思路:注意事项:参考代码:N=int(input())V1 = []V2 = []for i in range(N): A,B=map(int,input().split()) V1.…… 题解列表 2023年11月18日 0 点赞 1 评论 725 浏览 评分:9.9