1027 题解 摘要:参考代码:#include<iostream> using namespace std; int add(int a,int b,int c) { if(a>b) { while(a%b!…… 题解列表 2023年02月05日 0 点赞 0 评论 368 浏览 评分:0.0
交换 a b 的值(不增加新的变量) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); a=a^b; b=a^b…… 题解列表 2023年02月05日 0 点赞 0 评论 635 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:哔哔哔注意事项:bibibi参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,x1,x2,x3,x4; …… 题解列表 2023年02月05日 0 点赞 0 评论 488 浏览 评分:2.0
向量点积计算(建立结构体) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xy{ int a; int b;}spot[1000];int main(){ int n,sum=0; scanf("…… 题解列表 2023年02月05日 0 点赞 0 评论 530 浏览 评分:0.0
找第一个只出现一次的字符(代码简短) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,count[26]={0}; char str[100000]; gets(str); f…… 题解列表 2023年02月05日 0 点赞 0 评论 520 浏览 评分:0.0
暴力算法c语言 普通的for循环#includeintisPrime(intn){inti;intt=sqrt(n);for(i=2;i 题解列表 2023年02月05日 0 点赞 0 评论 517 浏览 评分:9.9
<函数>分段函数求值(C语言) 摘要:#include<stdio.h> int Fun(int x) { int y = 0; if (x < 1) { y = x; } else if (x >= 1 &…… 题解列表 2023年02月04日 0 点赞 0 评论 512 浏览 评分:0.0
选择排序法 摘要:解题思路:一共输入十个数,用数组进行保存,再进行选择排序;注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j,t; for(i=0;i…… 题解列表 2023年02月04日 0 点赞 0 评论 627 浏览 评分:9.9
字符统计-Java简单解决 #解题思路:首先求出最多的次数max,再对key集合遍历,拿出对应的次数,与最大次数**比较**,如果相等就存入List集合中,最后再对List集合排序即可。------------#注意事项:当遍历key集合时,取出的次数与最大次数**比较**时不能使用==得用equals或者>=--------- 题解列表 2023年02月04日 0 点赞 0 评论 795 浏览 评分:7.5
编写题解 1206: 字符串问题 摘要:##编写题解 1206: 字符串问题 ```cpp #include using namespace std; int main() { string s; cin>>s; fo…… 题解列表 2023年02月04日 0 点赞 0 评论 550 浏览 评分:0.0