题解列表
1127基础解法(Python)
摘要:解题思路:可以用数学原理,也可以当做找规律注意事项:参考代码:n = int(input())cubic = pow(n, 3)square = pow(n, 2)if square % 2 == 0……
简单算数表达式求值(switch做法,C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int num1,num2; char ch; scanf……
甲流病人初筛(结构体做法、C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct person{ char name[10]; float temperat……
1157 亲和数 利用函数解决
摘要:#include<stdio.h>#include<math.h>int fun(int n){ int i,a,b,c,m,sum=0; m=sqrt(n);//可提高效率 for(i=2;i<=……
递归写法,新手尝试,欢迎优化
摘要:#include<stdio.h>
#include<math.h>
int Fun(int x)
{
while (x > 0)
{
return 2 * ((int)pow(1……
自定义函数之整数处理(入门必备)
摘要:题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数; ①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(a……
python两行代码通过
摘要:##### 关于找到规律之后python两行代码通过这件事
```python
n,s=map(int,input().split())
print ((int(s)+int(2**(n+1)-……
第一个写题解的 有点意外哈哈
摘要:```c
#include
#include
int main()
{
char a[1000];
int flag=0;//flag作为间断点
gets(a);//gets能接收……