题解列表

筛选

1093: 字符逆序

摘要:```cpp #include using namespace std; int main(){ char str[100]; gets(str); //用gets输……

Tom数(我来用Java写)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{    public static void main(String[] args)……

核桃的数量

摘要:解题思路:此题要求每袋的最少数量,根据题意来讲其实只要找出三个数中最小公倍数即可注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;p……

二级C语言-自定义函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double x,y; scanf("%lf",&x); if(x<1) { y=x; } else if(x……

小白暴力法

摘要:解题思路根据规律每行长度为 1 3 7 15定义一个数组长度大于2的26次方每一行为前一行+(&#39;A&#39;+该行行数)+前一行注意事项:参考代码:#include<bits/stdc++.h……

二级C语言-自定义函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int m);double mypow(double x,int n);int ……

二级C语言-最小绝对值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; for(int i=0;i<10;i++) { scan……

二级C语言-分段函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,y; scanf("%lf",&x); if(x<0) { ……

运用数学规律解题

摘要:参考代码:```c++#include<iostream>using namespace std;int main() { int i, j; int a, b, n; cin >> n; while……