二级C语言-计负均正(C++版) 摘要:解题思路:根据题意,首先需要定义一个长度为20的数组来保存20个整数,然后定义sum保存所有正数的和,aver保存所有正数的平均值。再定义num保存负数的个数,接着用for循环依次输入20个数(这里为…… 题解列表 2022年09月03日 0 点赞 0 评论 507 浏览 评分:9.9
1040简单的解法(C) 摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:如果你想证明自己不是刚刚学习一两天,可以使用这段程序。#include<stdio.h>void f(){//自定义voi…… 题解列表 2022年09月03日 0 点赞 1 评论 397 浏览 评分:9.9
1102: 明明的随机数 摘要:```cpp #include #include using namespace std; int main() { int N,i,j=0,b[100]; cin>>N…… 题解列表 2022年09月04日 0 点赞 0 评论 495 浏览 评分:9.9
1103: 开心的金明 摘要:```cpp #include using namespace std; int value[25],weigth[25]; int OPT(int total,int num) { …… 题解列表 2022年09月04日 0 点赞 0 评论 789 浏览 评分:9.9
1104: Jam的计数法 摘要:```cpp #include using namespace std; int main() { char f,v[30]; int s,t,w,sum=0,flag=0…… 题解列表 2022年09月04日 0 点赞 0 评论 617 浏览 评分:9.9
1105: 数列(c+++代码) 摘要:```cpp #include #include using namespace std; int main() { int k,n,result=0,radix=1; …… 题解列表 2022年09月04日 0 点赞 0 评论 594 浏览 评分:9.9
1106: 奖学金 摘要:```cpp #include #include using namespace std; struct student { int id,Chinese,score; }stu…… 题解列表 2022年09月04日 0 点赞 0 评论 898 浏览 评分:9.9
1107: 纪念品分组 摘要:```cpp #include #include using namespace std; int n,k,a[30010],flag[30010]; bool cmp(int a,int …… 题解列表 2022年09月04日 0 点赞 1 评论 463 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:解题思路:输入二维数组,通过坐标关系直接输出数组注意事项:输出时注意三个换一行参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2022年09月05日 0 点赞 0 评论 384 浏览 评分:9.9
蓝桥杯基础练习VIP-高精度加法——模拟手写竖式计算 摘要:解题思路: 按照手算列竖式的方法做模拟运算,结果用字符串存储即可。注意事项: 对进位的处理要谨慎。参考代码://头文件引入 #include<iostream> #include <s…… 题解列表 2022年09月05日 0 点赞 0 评论 698 浏览 评分:9.9