题解列表

筛选

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,s;scanf("%d%d",&a,&b);s=a+b;printf("%d",s);return……

分解质因数 (Java代码)

摘要:解题思路:不能整出就将除数++,能整除就先判断是否为第一次输出,如果不是第一次输出就多加一个“*”注意事项:用for循环的时候,每次都要把数存起来,不能直接用for里面的变量。参考代码:import ……

P1029 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int max_match(string ……

P1060 (C++代码)

摘要:解题思路:注意事项:参考代码:一开始编了个程序,不知咋的指针越界。正确程序:#include<iostream> #include<cstring> #include<cmath> #inclu……