题解列表

筛选

python二分法求函数零点

摘要:参考代码:def compute(x):    return pow(x,5)-15*pow(x,4)+85*pow(x,3)-225*pow(x,2)+274*x-121def num(l,r): ……

基因相关性(两个数组的相似比例)

```c#include#include//要用到strlen函数intmain(){chara[501],b[501];floatsim;intlen,num=0;scanf("%f",&sim);//输入相似度scanf("%s",&a);//输入第一条基因scanf("%s",

矩阵转置(超级简单)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int a[100][100];      int n,i,j;      scanf("%d",&n……

1116: IP判断(python)

摘要:解题思路:1、EOF即为"End of file"缩写2、四个整数中不允许有前导零存在:即当数字长度大于一位时(0是可以的),第一位为0的数都是含有前导零的数参考代码:while True:    t……

数列(水题,测试数据有问题)

```c#includelonglongpower(intk,intj){longlongans=1;while(j){ans*=k;j--;}returnans;}intmain(){intk,n,i,j,r[1000],cnt=0;intsum=0;//我一开始用longlong居然不对,