1040: [编程入门]实数的打印 最简方法 摘要:解题思路:简单的输入输出问题,首先定义float类型,然后输入,并按要求输出。注意事项:1.由题意输入为float类型,输入scanf注意%f。2.输出部分 “6.2f”格式是指数字整体长度包括小数点…… 题解列表 2022年12月01日 0 点赞 0 评论 327 浏览 评分:9.9
标记法(挺好懂得)(虽然我是菜鸟) 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include<math.h> int main(){ int x[5][5],i,j; for(i=0;i<5;i++) { fo…… 题解列表 2022年12月01日 0 点赞 0 评论 299 浏览 评分:0.0
废物新人的笨方法 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include<math.h> int main(){ int n,i,j; scanf("%d%d%d",&n,&i,&j); fo…… 题解列表 2022年12月01日 0 点赞 0 评论 442 浏览 评分:6.0
2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:a = int(input())if a / 3 + 50 < a / 1.2: print('Bike')elif a / 3 + 50 == a…… 题解列表 2022年12月01日 0 点赞 0 评论 386 浏览 评分:9.9
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:import sys a = int(input())if a < 1 or a > 7: sys.exit() #退出程序elif a != …… 题解列表 2022年12月01日 0 点赞 0 评论 402 浏览 评分:6.0
01背包(动态规划) 摘要:解题思路:动态规划 对于01背包问题选择方法的集合可以分成2种: ①不选第i个物品,并且总体积不大于j的集合所达到的最大值:f[i-1][j] ②选择1~i个物品,并且总体积不大于j的集合所达…… 题解列表 2022年12月01日 0 点赞 0 评论 530 浏览 评分:9.9
题解 2970: 计算两个日期之间的天数 摘要:### 题解 2970: 计算两个日期之间的天数 ## 解题思路 使用一个固定的日期作为参考日期(我选则的是公元1年1月1日) 计算两个日期分别相对于这个日期的差值,计算两个差值 计算…… 题解列表 2022年12月01日 0 点赞 0 评论 541 浏览 评分:9.9
同因查找(还行) 摘要:解题思路:注意事项:参考代码:for i in range(10,1000): if i%2==0 and i%3==0 and i%7==0: print(i) …… 题解列表 2022年12月01日 0 点赞 0 评论 231 浏览 评分:0.0
求偶数和(还行的解法) 摘要:解题思路:注意事项:参考代码:n=int(input())sn=0lit=list(map(int,input().split()))for i in lit: if i%2==0: …… 题解列表 2022年12月01日 0 点赞 0 评论 315 浏览 评分:0.0
队列思想,模拟思想,C / C++ 摘要: C++版 #include #include using namespace std; int main() { int n, m; while(cin >> n >> …… 题解列表 2022年12月01日 0 点赞 0 评论 230 浏览 评分:9.9