编写题解 1091: A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 482 浏览 评分:0.0
编写题解 1090: A+B for Input-Output Practice (VI) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a;while(cin>>n){ …… 题解列表 2022年03月19日 0 点赞 0 评论 450 浏览 评分:0.0
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a; int m; ci…… 题解列表 2022年03月19日 0 点赞 0 评论 549 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a; while(true){…… 题解列表 2022年03月19日 0 点赞 0 评论 469 浏览 评分:0.0
矩阵对角线求和(指针解法) 摘要:解题思路: 1、本题是基于题目1024 解的 2、把二维的一个数组展开成一维度,直接用指针数组去存储 3、对角坐标的规律我这就不叙述了,根据规律定位指针的地址获取值即可注意事项: …… 题解列表 2022年03月19日 0 点赞 0 评论 949 浏览 评分:9.9
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 542 浏览 评分:0.0
编写题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a,b; cin>>n; …… 题解列表 2022年03月19日 0 点赞 0 评论 590 浏览 评分:0.0
编写题解 1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年03月19日 0 点赞 0 评论 516 浏览 评分:0.0
编写题解 1025: [编程入门]数组插入处理(初始解题,包含数组、循环、判断) #原题链接**[编程入门]数组插入处理-C语言网https://www.dotcpp.com/oj/problem1025.html。**##解题思路**1、按照题目要求输入正序的数(假设是从小到大顺序)放入数组,同时输入需要插入的数x2、用x与数组元素比较, 题解列表 2022年03月19日 0 点赞 0 评论 641 浏览 评分:0.0
归并排序代码简易版 #define_CRT_SECURE_NO_WARNINGS#include#includeintarr=0;inta[500005],b[500005],n;voidMergeSort(intl,intr){if(l>=r)return;intmid=(l+r)/2;MergeSort(l, 题解列表 2022年03月19日 0 点赞 0 评论 676 浏览 评分:8.0