C++:vector容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std ;void ko( vector<…… 题解列表 2025年03月26日 0 点赞 0 评论 574 浏览 评分:8.0
简单思路解求矩阵的两对角线上的元素之和 摘要:解题思路:利用斜对线的数组编号注意事项:奇数的时候中间的那个数是多加了一次,要减掉参考代码:#include<stdio.h>int main(){ int n,…… 题解列表 2025年07月24日 3 点赞 0 评论 381 浏览 评分:8.0
C++简单版,一看就会 摘要:解题思路:c++简单版本,一学就会(注意事项:第一个头文件可要可不要,本人习惯写上参考代码:#include <iostream>#include <stdio.h>using…… 题解列表 2025年08月17日 2 点赞 0 评论 1255 浏览 评分:8.0
C++ : 使用循环解决,需要注意0是一位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain&nb…… 题解列表 2025年08月22日 1 点赞 0 评论 480 浏览 评分:8.0
1047: [编程入门]报数问题 摘要:#include<stdio.h>int main(){ int x, m; scanf("%d" , &x…… 题解列表 2025年08月25日 2 点赞 0 评论 533 浏览 评分:8.0
错一半的看过来!! 摘要:import matha = list(map(int, input().split()))if(len(a)==2): #测试案例中一个是单行输入,另一个是两…… 题解列表 2025年10月06日 1 点赞 0 评论 361 浏览 评分:8.0
c++的两种解法 摘要:方法1 if-else语句#include <iostream>using namespace std;int main() { int a; cin >> a; …… 题解列表 2025年10月27日 0 点赞 0 评论 279 浏览 评分:8.0
图形的规律遍历 摘要:解题思路:周期是 4,因为"2025"长度为 4。第i行(从 0 开始)相当于从"2025"&nbs…… 题解列表 2025年11月29日 13 点赞 1 评论 658 浏览 评分:8.0
2754: 其他基本数据类型存储空间大小 摘要:#include <stdio.h>#include <stdbool.h>int main(){ bool x; char…… 题解列表 2025年12月03日 0 点赞 0 评论 298 浏览 评分:8.0
铺地毯题解 摘要:解题思路:从最底层地毯开始,一直到最上层地毯循环。判断坐标(x,y)是否在此层地毯的范围内,编号应该保持为(最上层的 满足情况的 地毯的编号)。注意事项:将编号赋值为0(n以外的也可以,但0最省事),…… 题解列表 2025年12月07日 1 点赞 1 评论 211 浏览 评分:8.0