2916: 谁考了第k名 摘要:```cpp #include using namespace std; struct s { int xuehao; double chengji; }; int m…… 题解列表 2022年11月30日 0 点赞 0 评论 323 浏览 评分:9.9
我认为较简单的一种解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t=1,i,j,k=0; scanf("%d",&n); int a[n]; …… 题解列表 2022年11月30日 0 点赞 0 评论 252 浏览 评分:9.9
[编程入门]自定义函数之整数处理(C/C++) 摘要:## 前言 编程菜鸟,写的不好,请见谅。以下为最为直接普通的方法 ## 代码 ```C++ #include #include #include #include us…… 题解列表 2022年11月30日 0 点赞 0 评论 315 浏览 评分:9.9
1118: Tom数 (C) 摘要:```c #include #include int main(void) { long long len, num, sum=0; int i; while (~scan…… 题解列表 2022年11月30日 0 点赞 1 评论 707 浏览 评分:9.9
C语言 结构体之时间设计& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct calendar{ int year; int month; int day;}date, * p;…… 题解列表 2022年11月30日 0 点赞 0 评论 268 浏览 评分:9.9
队列思想,模拟思想,C / C++ 摘要: C++版 #include #include using namespace std; int main() { int n, m; while(cin >> n >> …… 题解列表 2022年12月01日 0 点赞 0 评论 268 浏览 评分:9.9
题解 2970: 计算两个日期之间的天数 摘要:### 题解 2970: 计算两个日期之间的天数 ## 解题思路 使用一个固定的日期作为参考日期(我选则的是公元1年1月1日) 计算两个日期分别相对于这个日期的差值,计算两个差值 计算…… 题解列表 2022年12月01日 0 点赞 0 评论 578 浏览 评分:9.9
01背包(动态规划) 摘要:解题思路:动态规划 对于01背包问题选择方法的集合可以分成2种: ①不选第i个物品,并且总体积不大于j的集合所达到的最大值:f[i-1][j] ②选择1~i个物品,并且总体积不大于j的集合所达…… 题解列表 2022年12月01日 0 点赞 0 评论 588 浏览 评分:9.9
2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:a = int(input())if a / 3 + 50 < a / 1.2: print('Bike')elif a / 3 + 50 == a…… 题解列表 2022年12月01日 0 点赞 0 评论 444 浏览 评分:9.9
1040: [编程入门]实数的打印 最简方法 摘要:解题思路:简单的输入输出问题,首先定义float类型,然后输入,并按要求输出。注意事项:1.由题意输入为float类型,输入scanf注意%f。2.输出部分 “6.2f”格式是指数字整体长度包括小数点…… 题解列表 2022年12月01日 0 点赞 0 评论 369 浏览 评分:9.9