用宏定义练习之三角形面积 摘要:```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 评论 347 浏览 评分:0.0
简单便捷解决美国大学 摘要:解题思路:1.输入州数 2.while循环判断是否州数为0,为0则退出 3.若不为0,则输入州的选票数 4.要求最少票数,则列表排序,取得前一半+1的州的认可(就需要取得这一半多州的票的一半+1) 5…… 题解列表 2022年03月03日 0 点赞 0 评论 709 浏览 评分:9.9
全球变暖--新手解法 摘要:解题思路:找到每块大陆,然后判断每块大陆是否能够被淹没,如果大陆周围被大陆包围就不可能被淹没注意事项:参考代码:#include<bits/stdc++.h>using namespace std;c…… 题解列表 2022年03月03日 0 点赞 0 评论 466 浏览 评分:6.0
编写题解 1247: 筛排处理 摘要:解题思路:代码量有些大,但是思路很清晰,先排序,后去重。注意每次k都要从0开始注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,t,k; int a[1…… 题解列表 2022年03月03日 0 点赞 0 评论 510 浏览 评分:0.0
动态规划十行快速解题 摘要:解题思路:注意事项:参考代码: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 评论 351 浏览 评分:0.0
程序员的表白(加油!无限拉大长板) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; int n,i,j; while(scanf("%d",&n)!=EOF) { for(j=0;…… 题解列表 2022年03月03日 0 点赞 0 评论 345 浏览 评分:0.0
1169: 绝对值排序(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<math.h> //定义结构体指针 typedef struct or…… 题解列表 2022年03月03日 0 点赞 0 评论 352 浏览 评分:7.0
结构体之成绩统计2 摘要: ```cpp #include using namespace std; //结构体数组 //定义结构体 struct student { char id[50]; //学号…… 题解列表 2022年03月03日 0 点赞 0 评论 313 浏览 评分:0.0
python-密码锁 摘要:解题思路:广度搜索bfs。注意事项:参考代码:if __name__ == '__main__': n = int(input().strip()) s =…… 题解列表 2022年03月03日 1 点赞 0 评论 452 浏览 评分:9.9
题目 1668: printf基础练习2 摘要:解题思路:注意事项:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0…… 题解列表 2022年03月03日 0 点赞 0 评论 422 浏览 评分:0.0