2896: 二维数组右上左下遍历 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; …… 题解列表 2024年08月27日 0 点赞 0 评论 181 浏览 评分:9.9
简简单单输入n(n<=100)个整数,按照绝对值从大到小排序后输出。题目保证对于每一个测试实例,所有的数的绝对值都不相等。 摘要:解题思路:注意事项:函数调用一大堆,哈哈哈就是面向对象参考代码:#include <iostream> #include <vector> #include <algorithm> #inclu…… 题解列表 2024年08月27日 0 点赞 0 评论 219 浏览 评分:0.0
出圈,人要麻木了,真的出圈了 摘要:解题思路:注意事项:在判断最后一个函数中的迭代器要两次判断尾参考代码:#include <iostream> #include <vector> using namespace std; voi…… 题解列表 2024年08月27日 0 点赞 0 评论 136 浏览 评分:0.0
1149计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ string a; getline(cin, …… 题解列表 2024年08月26日 0 点赞 0 评论 172 浏览 评分:0.0
编写题解 2950: 素数回文数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int s(int n){ for(int i=2;i*i<=n;i++) { …… 题解列表 2024年08月24日 0 点赞 0 评论 408 浏览 评分:0.0
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 236 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=…… 题解列表 2024年08月24日 0 点赞 1 评论 262 浏览 评分:9.9
1492 蓝桥杯算法提高VIP-产生数 摘要:解题思路:无注意事项:无参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],p[1000…… 题解列表 2024年08月24日 0 点赞 0 评论 236 浏览 评分:10.0
铺地毯 利用二维数组 易懂 摘要:解题思路:利用二维数组形成矩阵,答案中感觉比较少提到这种方法,在这里我来给出,请不吝赐教。参考代码: int n; scanf("%d",&n); …… 题解列表 2024年08月23日 1 点赞 0 评论 182 浏览 评分:6.0
菜鸟编程,高手勿看 摘要:解题思路:利用while 循环来进行元素逆置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; for (…… 题解列表 2024年08月23日 0 点赞 0 评论 223 浏览 评分:9.9