题解列表

筛选

以数组的形式

摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(void){    int n;    int array[55];    for(n=1;n<=4;n++)   ……

c代码记录之回文数字

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int fun5(int m){     int i,j,k,t=0;     for(i=1;i<=9;i++)    ……

2772: 苹果和虫子

摘要:```cpp #include #include using namespace std; int main() { int n; double x, y; ……

初学者用if暴力解法

摘要:解题思路:定义一个变量a,其中:if条件a/10000!=0表示a为一个五位数,以此类推注意事项:注意else if 的用法,不要丢了else 第二个问题不要用else参考代码:#include <s……

1669: 求圆的面积

摘要:解题思路:无注意事项:要用到3个“工具”。。。参考代码:#include<iostream>#include<iomanip>#define Pi 3.1615926usins namespace s……

取余操作的运算性质

摘要:参考代码:#include<stdio.h> int main() { int p,m,s=2,r; scanf("%d%d",&p,&m); for(int i=1;i<=p;i++……