优先队列+结构体排序-巧克力 摘要:头一次正儿八经写题解,刚来C语言网就自不量力想a这题,奈何当时水平有限,现在马上国赛了,又看到这题终于是给他拿下了。 解题思路:维护一个优先队列,队列里存放符合当前日期保质期要求的所有剩余巧克力…… 题解列表 2022年05月15日 0 点赞 0 评论 954 浏览 评分:4.5
Hello World!注意事项 摘要:解题思路:Hello World 虽然简单 但是容易出错注意事项:return 0 其实可有可无 注意中英输入法符号问题 一定要写换行符\n 其次换行符写在""里面参考代码:#include<stdi…… 题解列表 2022年05月15日 0 点赞 0 评论 537 浏览 评分:9.9
哈希-数位排序 摘要:```cpp #include using namespace std; int n,m; vector h[100]; int main() { cin>>n>>m; f…… 题解列表 2022年05月15日 0 点赞 0 评论 557 浏览 评分:0.0
简单的a+b题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) …… 题解列表 2022年05月15日 0 点赞 0 评论 1069 浏览 评分:9.9
for循环判断~ 摘要: ``` #include #include #include #include using namespace std; const int Inf = 1e4; int M,N; …… 题解列表 2022年05月15日 0 点赞 0 评论 441 浏览 评分:9.9
最大公约数与最小公倍数 摘要:解题思路:欧几里得算法gcd(m,n)=gcd(n,m%n)直至m%n==0参考代码:#include<stdio.h>int gcd(int a,int b){ int t; while…… 题解列表 2022年05月15日 0 点赞 0 评论 353 浏览 评分:0.0
1173: 计算球体积(详细 清晰) 摘要: 很简单的一道题,只要知道公式就非常容易计算,但是很多人明明公式对了,结果却一直出不来,就是这个题主要的错误点就是在4/3的时候要记得类型转换,因为如果不进行类型转换,编译器会将4/3当做整数运…… 题解列表 2022年05月15日 0 点赞 0 评论 1286 浏览 评分:9.9
lf-普通解法 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct t…… 题解列表 2022年05月15日 0 点赞 0 评论 528 浏览 评分:0.0
信息学奥赛一本通T1234-2011-题解(各语言代码) 摘要:快速幂的思路 **python** ```python from functools import reduce print(*map(lambda _:reduce(lambda x,y:x…… 题解列表 2022年05月14日 0 点赞 0 评论 1139 浏览 评分:3.2
小南解题---学生成绩 摘要:'''zgn94622:17 2022/5/14'''#输入a=int(input().strip())aa=[input().strip().spli…… 题解列表 2022年05月14日 0 点赞 0 评论 330 浏览 评分:9.9