题解列表

筛选

编写题解 2921: 整数奇偶排序

摘要:解题思路:把数输入到数组遍历将原先数组分成奇偶数分别放入集合(因为不知奇偶个数所以要用到集合)将数组转型利用冒泡排序将奇数按从大到小,偶数从小到大注意事项:参考代码:import java.util.……

油炸坤坤好吃不贵

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Pi 3.14159int main(){    int r,h;    scanf("%d%d", &h, &r); ……

数组加for循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i,k=0;    int a,b,c[100];    scanf("%d",&n);   ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int x, int y){ return x >= y ? x : y;}int main(){ char str1[……

用vector容器写的

摘要:解题思路:原题链接:Hello,world!注意事项:熟悉vector的用法参考代码:#include<iostream>#include<vector>using namespace std;int……

3030:——全排列

摘要: import java.util.Scanner; public class Main { public static void main(String[] ……

&#039;hello world &#039;的输出

摘要:解题思路:用cout语句来实现输出。注意事项:要注意输出内容是否与题目要求一致(如大小写,换行,‘*’个数。)参考代码:#include using namespace std; int main……