1026一行解(Python) 摘要:注意事项:注意题目的要求最后能不能存在空格,要是不允许空格存在还需要对最后一位进行处理参考代码:for i in input().split()[::-1]:print(i,end=' …… 题解列表 2022年11月05日 0 点赞 0 评论 684 浏览 评分:9.9
细节!!! 摘要:解题思路:简单的输入输出题注意事项:在输出n=10,m=1实际上输出的是99.20,但是输其他数据是正常的,所以这里只要加个判断语句就可以了参考代码:#include <stdio.h>int mai…… 题解列表 2022年11月05日 0 点赞 15 评论 1259 浏览 评分:9.9
简单的思路——骑车与走路 摘要:解题思路:数学+if else-if else语句。注意事项:不要将速度弄错了!参考代码:#include<stdio.h>int main(){ int a; float t1,t2; …… 题解列表 2022年11月05日 0 点赞 2 评论 1093 浏览 评分:9.9
1223一行解(Python) 摘要:注意事项:set用于数据清洗(集合元素的唯一性),取其长度-2即可(因为第一个数从0算起被认为是符合条件的,要去除,直接从1开始算那我也不反对,再减去集合中0的元素,即列表中表示不符合条件的元素)参考…… 题解列表 2022年11月05日 0 点赞 0 评论 421 浏览 评分:9.9
C语言通俗易懂 摘要: #include #include // 循环暴力算法,一个一个比较就好 int main() { // 初始化值(也可以用动态内存开辟数组) int f[1000]…… 题解列表 2022年11月05日 0 点赞 0 评论 608 浏览 评分:9.9
金币C语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i,sum=0,n,c; scanf("%d",&n); for(i=1,c=1;i<=n;c++)…… 题解列表 2022年11月05日 0 点赞 1 评论 713 浏览 评分:9.9
1179 上车人数 斐波那契数列的应用 摘要:# # 思路 先尝试一下计算出在某一站的总人数的通项公式,设a为第一站上车的人数,b为第二站上车和下车的人数,可计算出通项公式为`f1(n)*a+f2(n)*b`,其中: f1(0)=f1(1)=…… 题解列表 2022年11月05日 0 点赞 0 评论 651 浏览 评分:9.9
蟠桃记(简单C++倒推) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int t,n,a[88]={1},i; …… 题解列表 2022年11月05日 0 点赞 0 评论 428 浏览 评分:9.9
计算两点间的距离(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<cmath> #include<iomanip> int mai…… 题解列表 2022年11月05日 0 点赞 0 评论 578 浏览 评分:9.9
计算球体积(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<iomanip> int main() { float…… 题解列表 2022年11月05日 0 点赞 0 评论 601 浏览 评分:9.9