题解列表

筛选

谁考了第k名c++

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; struct Student{     int id;     double ……

Tom数(C++简单)

摘要:解题思路:注意事项:2^32数很大,int 存不下,可以用long long;参考代码:#include<iostream> using namespace std; #include<cmath……

暴力匹配(效率低)

摘要:解题思路:用临时值依次匹配,不要用i和j本身注意事项:如下参考代码:#define _CRT_SECURE_NO_WARNINGS#include<iostream>#include<string.h……

完数的判断,C++

摘要:解题思路:题目描述一个数如果恰好等于不包含它本身所有因子之和,这个数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 编程序找出N之内的所有完数,并按下面格式输出其因……

财务管理(c++通俗易懂)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int i;    doubl……

快速排序解题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; void QS(int a[],int l,int r) { if(l……

亲和数(超简单C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int n)       //求约数和 {     int i,s=0……

利用结构体排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct a{ char m[20]; int ……

自己写的c++最暴力版

摘要:参考代码:#include<iostream>#include<string>using namespace std;int n;int main(){ cin>>n; int a=65; strin……

利用sort巧妙解。

摘要:解题思路:    利用sort解题注意事项:    注意sort的用法参考代码:#include<bits/stdc++.h> using namespace std; typedef struc……