动态规划十行快速解题 摘要:解题思路:注意事项:参考代码:dp=[0 for i in range(1000000)]count=0a,b=map(int,input().split())dp[a]=dp[b]=1for i i…… 题解列表 2022年03月03日 0 点赞 0 评论 450 浏览 评分:0.0
编写题解 1247: 筛排处理 摘要:解题思路:代码量有些大,但是思路很清晰,先排序,后去重。注意每次k都要从0开始注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,t,k; int a[1…… 题解列表 2022年03月03日 0 点赞 0 评论 599 浏览 评分:0.0
用宏定义练习之三角形面积 摘要:```cpp #include using namespace std; #define S(a,b,c) s=(a+b+c)/2.0; #define area(a,b,c,s) q=sqr…… 题解列表 2022年03月03日 0 点赞 0 评论 475 浏览 评分:0.0
字符类型统计-傻瓜做法 摘要:解题思路:如果忘记了alpha、dight、space这几个单词的情况下可以用这个方法......注意事项:注意字母是会有大写小写两种状态的参考代码:inp = input()A = 0B = 0C …… 题解列表 2022年03月03日 0 点赞 0 评论 435 浏览 评分:0.0
宏定义之闰年判断 摘要:```cpp #include using namespace std; #define LEAP_YEAR(y) if((y%100!=0&&y%4==0)||y%400==0){cout…… 题解列表 2022年03月03日 0 点赞 0 评论 328 浏览 评分:0.0
题解 1135: C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,n; scanf("%d %d",&a,&n); if(n>=…… 题解列表 2022年03月03日 0 点赞 0 评论 511 浏览 评分:0.0
题解 1149: C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:计算奇数时需要包括1和n本身参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); …… 题解列表 2022年03月03日 0 点赞 0 评论 567 浏览 评分:0.0
宏定义之找最大数 摘要:```cpp #include using namespace std; #define da2(a,b,c) float x1,x2;x1=max(a,b);x2=max(x1,c);cout…… 题解列表 2022年03月03日 0 点赞 0 评论 372 浏览 评分:0.0
题解 1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:注意事项:1.计算分数的值时,分母的数据类型需要设为浮点型参考代码:#include<stdio.h> int main() { int n; double t=0,…… 题解列表 2022年03月03日 0 点赞 0 评论 364 浏览 评分:0.0
1575 递归倒置字符数组 java 摘要:- 代码 ```java import java.util.ArrayList; import java.util.Scanner; public …… 题解列表 2022年03月03日 0 点赞 0 评论 571 浏览 评分:0.0