题解 1234: 检查一个数是否为质数 摘要:解题思路:额…………注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int mai…… 题解列表 2024年04月05日 0 点赞 0 评论 446 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 356 浏览 评分:0.0
题解 2825: 计算多项式的值 (记录本题另一种计算结果精度损失的计算方式) 摘要:```c #include int main() { int i,j,n; double x,count=1.0,count_part; scanf("…… 题解列表 2024年04月05日 0 点赞 1 评论 446 浏览 评分:0.0
c++利用数组记录路径 摘要:解题思路:使用一个bool已经dfs来判断环上点的位置,详细的看代码上的注释注意事项:参考代码:#include<bits/stdc++.h>#define DZT ios::sync_with_st…… 题解列表 2024年04月05日 0 点赞 0 评论 489 浏览 评分:0.0
结构体之成绩记录(结构体数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct stu{ char num[20]; char name[20]; int chine…… 题解列表 2024年04月05日 0 点赞 0 评论 351 浏览 评分:0.0
结构体之成绩记录(指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct stu{ char num[20]; char name[…… 题解列表 2024年04月05日 0 点赞 0 评论 336 浏览 评分:0.0
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct stu{ char num[20]; char name[20]; i…… 题解列表 2024年04月05日 0 点赞 0 评论 367 浏览 评分:0.0
C++ 状态压缩dp 摘要:解题思路:尝试了一下dfs只能拿到一半的分数,刚好昨天学了状压dp,每一包糖果的组合都可以用一种状态来表示。可以枚举每一种状态通过状态转移方程得到结果注意事项:参考代码:#include<bits/s…… 题解列表 2024年04月05日 0 点赞 0 评论 516 浏览 评分:0.0
c++递增三元组 排序+二分 摘要:解题思路:将 ai<bj<ck 拆成两个式子 bj>ai 和 bj<ck; 所以只需要枚举j即可再用二分找出边界注意事项:参考代码:#include<bits/stdc++.h>#define int…… 题解列表 2024年04月06日 0 点赞 0 评论 444 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double sum,h,M,N; scanf("%lf %lf",&M,&N); h…… 题解列表 2024年04月06日 0 点赞 0 评论 330 浏览 评分:0.0