题解列表
1739: 成绩排序
摘要:结构体的排序,自己写一个 sort 函数的比较算法就好了。#include<bits/stdc++.h>
using namespace std;
struct student{
s……
暴力回文(c++代码)
摘要:解题思路:(此思路从回文那题搬运而来)从95860开始往后枚举若是回文数字(原数字与倒数字相同)自动跳出,判断回文的方法:从个位开始依次取余,每次取余后的结果和上次和的结果*10最后得到的值就是给这个……
自定义函数处理最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int i,j,a,b; int gye(int a,int b){ for(i=a;;i--) {if(a%i==0&&……
优质题解
1092: A+B for Input-Output Practice 详细题解(java代码)
摘要:解题思路: 1.用双重循环来写,外层循环遍历行数,内层循环遍历每行的列数。 2.每行数相加的和储存在mun里面,输出完重置mun,计算下一行。注意事项: ……
1015: [编程入门]求和训练
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a,b,c,d=0,e=0,f=0,Sn……
1169: 绝对值排序
摘要:C语言网刷题以来首次碰到用 pair 的题。#include<bits/stdc++.h>
using namespace std;
bool cmp(pair<int,int> &a,pa……
蓝桥杯算法训练VIP-判定字符位置----C风格和C++风格
摘要://这是用C++中的string来实现
```cpp
#include
using namespace std;
int main(void)
{
string str;
cin>>……
1023: [编程入门]选择排序
摘要:import java.io.*;
import java.util.Arrays;
/**
* 把十个数读入数组,然后使用 Arrays.sort() 排序
*/
public……