题解列表
C++ 编写题解 1098: 陶陶摘苹果
摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int……
堆优化版的Dijskra
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<queue>
#include<vector>
#include<cstring>
using nam……
1074: 数字整除
摘要:解题思路:用用户输入的数据取模17即可得知是否为17的倍数注意事项:1、由于输入的是大数据,即用普通的int,long等装不下,故可用字符数组的方式容纳此数2、需要明白字符数组中的值转换为int数字类……
用string类直接秒了
摘要:```cpp
#include
#include
using namespace std;
int main()
{
string str;
cin >> str;
……
NOIP提高组2007
摘要:参考代码:#include<stdio.h>
char s[150];
int p1, p2, p3;
char c;
char now, left, right;
int main()
……
c++:通过ascll码来整合出数字之后拼凑起来即可
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdlib.h>#include<math.h>using namespace std;int main(){ i……
更小的数---暴力尝试,简单易看懂
摘要:解题思路:本题时间要求不那么严格,双重循环也能过注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
typede……
2767: 计算多项式的值
摘要:解题思路: 先思考数学中的式子,拿到C语言中该如何解决 a,b,c,d,x 是我们自己输入的是给定的值 X的三次方就是3个X相乘 X*X*X 那就好解决咯参考代码:#include<s……