编写题解 1159: 偶数求和(常规思路) 摘要:解题思路:1.将数列2,4,6,8,10…(100个)提前装进数组2.获取n,m3.遍历数组前n个元素,每m个相加求均值则输出4.最后判断n%m是否为0,若不为0表示最后还少输出一个,其个数有n-t*…… 题解列表 2023年01月19日 1 点赞 0 评论 609 浏览 评分:10.0
链队列/循环队列 摘要:解题思路:注意事项:参考代码://linkquene #include <iostream>#include <cstdlib>using namespace std;typedef struct q…… 题解列表 2023年01月19日 0 点赞 0 评论 375 浏览 评分:0.0
我这个应该是挺好理解的吧 摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m)//n…… 题解列表 2023年01月19日 0 点赞 0 评论 449 浏览 评分:0.0
1395: 倒数第二 摘要:解题思路:注意事项:参考代码:n = int(input())while n != 0: try: x = int(input()) a = list(map(int…… 题解列表 2023年01月19日 0 点赞 0 评论 499 浏览 评分:9.9
1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>#include<algorithm>//导入algorith…… 题解列表 2023年01月20日 0 点赞 0 评论 408 浏览 评分:0.0
1065: 二级C语言-最小绝对值(简洁代码) 摘要:解题思路:第一:使用绝对值进行对比,输出时是原值第二:最小位置与最后一位进行交换使用math库里面的abs函数,其返回值是原值的绝对值,使用数组下标进行比较,可以少写一个储存最小值的变量。使用异或运算…… 题解列表 2023年01月20日 0 点赞 1 评论 552 浏览 评分:9.9
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:使用下标记录最大值位置,在对比时使用数组和下标,这样可以少写一个储存最大值的变量使用abs函数,简化代码参考代码:#include <iostream> #include <cmath> …… 题解列表 2023年01月20日 0 点赞 0 评论 555 浏览 评分:9.9
1470: 蓝桥杯基础练习VIP-时间转换 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long n; while(cin>>n){ int a…… 题解列表 2023年01月20日 0 点赞 0 评论 334 浏览 评分:0.0
日期非结构解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, y, r; int h; int i; int sum=0; scanf("%d%d%d", &n…… 题解列表 2023年01月20日 0 点赞 0 评论 332 浏览 评分:0.0
输出第n名的排序程序 摘要:```c #include int main() { int sum, rank, r[100] = { 0 }, num[100];//r[]数组存放排名,num[]数组存放学号 fl…… 题解列表 2023年01月20日 0 点赞 1 评论 552 浏览 评分:9.0