题解列表
1074: 数字整除
摘要: #include
#include
using namespace std;
int main()
{
string s;
in……
1141: C语言训练-百钱百鸡问题
摘要:方法一:
```cpp
#include
using namespace std;
int main()
{
for(int cock=0;cock……
1142: C语言训练-立方和不等式
摘要:```cpp
#include
#define c3(n)n*n*n
using namespace std;
int main()
{
int n,t=1,sum=0;
……
1143: C语言训练-素数问题
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int n;
bool flag=true;
……
1115DNA题解 二维数组
摘要:```c
#include
int main()
{
int n, a, b, i, j, k, r, t = 1, num = 1, s;
char c[39][39];//使用二维……
编写题解 1010: [编程入门]利润计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,b; scanf("%d",&a); if(a<=100000) b=a*0.1; if(a>100000&……
1002: [编程入门]三个数最大值
摘要:解题思路:注意事项:if的格式(有两个&)参考代码:#include <iostream> using namespace std;int main(){int a,b,c;cin>>a>>b>>c;……
1002: [编程入门]三个数最大值
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b && ……
【C语言】临时记忆:用数组实现队列功能的解法 - DotcppXF
摘要:【解题思路】 ① 用数组 a[] 标记目前所有书的状态,便于查找,提高效率; ② 用数组 b[] 储存小A记住的书,循环处理完他需要依次记住的书。【1】所有书的状态标记 ……