题解列表
1002: [编程入门]三个数最大值c++代码
摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[……
因数平方和(数论分块+数学式子推导)
摘要:~~~
#include
using namespace std;
const int mod=1e9+7;
typedef long long ll;
int n;
ll qmin(ll……
自定义函数之数字分离(这样也行)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen……
自定义函数之字符串反转(除了hellow word 外简单的代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int n = strl……
2805: 乘方计算 快速幂方法
摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream>
// #include <sstream>
#include <cstdio>
// #include <algor……
2808: 买房子 (中关村怎么可能有这么便宜的房子)
摘要:解题思路:注意事项:参考代码:#include <iostream>
// #include <sstream>
#include <cstdio>
// #include <algorithm……