编写题解 2834: 与指定数字相同的数的个数 摘要:解题思路:定义count计数器注意事项:参考代码:n=int(input()) nums=list(map(int,input().split())) #打包为整型数组 m=int(input()…… 题解列表 2022年10月23日 0 点赞 0 评论 1451 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:定义count指针计数注意事项:参考代码:h1=list(map(int,input().split())) #苹果到地面高度,打包为整型数组 h2=int(input()) #陶陶把手伸…… 题解列表 2022年10月23日 0 点赞 0 评论 839 浏览 评分:9.6
dp,讲述一些经验和细节注意 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//最大上升子序列的问题,O(n^2)算法轻松解决//这种题用不了O(nlogn)的二分算法,因为存在两个元素无法比较的现象…… 题解列表 2022年10月23日 0 点赞 0 评论 339 浏览 评分:9.9
编写题解 2835: 计算书费 摘要:解题思路:注意事项:参考代码:price=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65] #将价格储存进数组 nums=list(map(int,input().…… 题解列表 2022年10月23日 0 点赞 0 评论 963 浏览 评分:9.9
编写题解 2836: 数组逆序重放 摘要:解题思路:逆序:nums[::-1]注意事项:参考代码:n=int(input()) nums=list(map(int,input().split())) #打包为整型数组 for i in n…… 题解列表 2022年10月23日 0 点赞 0 评论 843 浏览 评分:9.3
温度转换(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float c,F; c…… 题解列表 2022年10月23日 0 点赞 0 评论 599 浏览 评分:9.9
分段函数(C++) 摘要:解题思路:用f()分段;参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 697 浏览 评分:9.9
求偶数和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,s=0,a[20]; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 351 浏览 评分:9.9
等差数列(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i=1,j=2,sum=2; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 477 浏览 评分:9.9
同因查找(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i; for(i=10;i<=1000;i++) …… 题解列表 2022年10月23日 0 点赞 0 评论 470 浏览 评分:9.9