题解列表

筛选

好用的STL双端队列

摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c……

等差数列尼科彻斯定理

摘要:参考代码:/**  * 尼科彻斯定理:任何一个整数m的立方都可以写成m个连续奇数之和  * 示例:13*13*13=2197=157+159+161+163+165+167+169+171+173……

C语言求偶数和

摘要:解题思路:循环和条件判断语句的使用注意事项:写了两种,一种就是不需要输入整数个数n(输入以回车结束),另一种是需要输入整数个数n(就是本题)参考代码:第一种:#include<stdio.h>int ……

1157: 亲和数

摘要:```cpp #include using namespace std; int qhs(int x,int y){ int a=0,b=0; for(int i=1;i……

一元二次方程--------------C语言

摘要:解题思路:利用求根公式注意事项:导入数学库<math.h>参考代码:#include <stdio.h> #include <math.h> int main() { float a, b,……