编写题解 3011: 余数相同问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c,x,i,n;cin>>a>>b>>c;n=…… 题解列表 2024年05月15日 0 点赞 0 评论 292 浏览 评分:9.9
【编程入门】三个数找最大值 摘要:解题思路:题目是输入a、b、c三个值,输出其中最大值,除了需要a,b,c三个变量以外,还需要一个变量t存放最大值,先拿a和b比较,如果a>b则t存放a的值,否则存放b的值,再拿c和t比较(因为t中存放…… 题解列表 2024年05月15日 14 点赞 0 评论 2207 浏览 评分:9.9
数组距离简单求解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<algorithm>using namespace std;void InPut(v…… 题解列表 2024年05月15日 0 点赞 0 评论 460 浏览 评分:0.0
冒泡排序简单迅速 摘要:解题思路:定义一个空数组,然后循环的轮次和循环找到最大的数,然后写换位置的代码注意事项:别忘输出[i], for(int i=0;i<9;i++,如果代码直接出现10个零大概就是赋值有问题参考代…… 题解列表 2024年05月15日 1 点赞 0 评论 626 浏览 评分:10.0
编写题解 1184: 众数问题 摘要:```cpp #include #include #include #include using namespace std; bool cmp(vector& a,vector& b) …… 题解列表 2024年05月15日 0 点赞 0 评论 265 浏览 评分:9.9
题解 1195: 去掉双斜杠注释 摘要:```cpp #include #include #include #include using namespace std; const string flagString="//"; …… 题解列表 2024年05月15日 0 点赞 0 评论 338 浏览 评分:9.9
题解 1190: 剔除相关数 摘要:```cpp #include #include #include #include #include using namespace std; void numTransf(int n…… 题解列表 2024年05月16日 0 点赞 0 评论 304 浏览 评分:0.0
蒟蒻勿怪,蒟蒻%%%%%% 摘要:刚刚学python ```python n, m = map(int, input().split(' ')) list_a = [] for i in range(n + m): …… 题解列表 2024年05月16日 0 点赞 0 评论 427 浏览 评分:9.0
1035 字符类型统计(选择语句分别统计) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char s[100]; gets(s)…… 题解列表 2024年05月16日 0 点赞 0 评论 489 浏览 评分:0.0
1036两个数的交换(^位操作符的使用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d%d",&m,&n); m=m^n; n=m^n; m=m^n; print…… 题解列表 2024年05月16日 0 点赞 0 评论 364 浏览 评分:0.0