1098: 陶陶摘苹果 摘要:```cpp #include using namespace std; int h[10],a; int main(){ for( int i=1;i>h[i]; } cin>>…… 题解列表 2023年11月27日 0 点赞 0 评论 162 浏览 评分:0.0
2837: 年龄与疾病 摘要:``` #include using namespace std; int n[100000],a; double q,w,e,r; int main() { cin>>a; for…… 题解列表 2023年11月27日 0 点赞 0 评论 243 浏览 评分:0.0
(轻轻松松)宏定义练习之三角形面积 摘要:解题思路: 直接用它给的公式算起!注意事项: 要用开方!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int …… 题解列表 2023年11月27日 0 点赞 0 评论 125 浏览 评分:0.0
查找特定的值(C语言版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,k; int flag=0; int arr[10001]; scanf…… 题解列表 2023年11月27日 0 点赞 0 评论 115 浏览 评分:0.0
不高兴的津津(C语言版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],b[10]; int sum[10]; int max=0,count=0…… 题解列表 2023年11月27日 0 点赞 0 评论 124 浏览 评分:0.0
最大值和最小值的差(C语言) 摘要:#include<stdio.h>int main(){ int a,b[10001]; int max=0,min=10000; scanf("%d",&a); for(in…… 题解列表 2023年11月27日 0 点赞 0 评论 373 浏览 评分:0.0
分治算法-和为给定数.java 摘要:解题思路:这里有一个精髓是对这个arr数组排序,然后进入递归判断。保证当我们在数组的两端同时向中间遍历时,如果当前两个数的和小于目标值,那么我们需要增加较小的数(也就是左边的数),反之我们需要减小较大…… 题解列表 2023年11月27日 0 点赞 0 评论 127 浏览 评分:0.0
统计值,使用ASCII对应的值或者使用 ' ' 单引号内加所需要的 摘要:解题思路:统计值本题牵扯到的知识点有1如何访问一维字符型数组的所有元素2如何表示数字字符 使用ASCII对应的值或者使用 ' ' 单引号内加所需要的第一种:a[i]>=’0’&&a[…… 题解列表 2023年11月27日 0 点赞 0 评论 110 浏览 评分:0.0
谁考了第k名(C语言) 摘要:解题思路:注意事项:成绩交换后学号也需要交换参考代码:#include<stdio.h>int main(){ int n,k,a[101]; float score[101]; s…… 题解列表 2023年11月27日 1 点赞 0 评论 174 浏览 评分:0.0
奇数单增序列(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,arr[501]; int count=0,k=0; scanf("%d",&n)…… 题解列表 2023年11月28日 0 点赞 0 评论 207 浏览 评分:0.0