汽水瓶(python代码) 摘要:def printf(x): total = 0 c = x//3 total = total+c d = x%3 x = d+c   题解列表 2023年01月16日 0 点赞 0 评论 219 浏览 评分:0.0
c语言字符串p型编码 摘要:```c #include #include int main () { char ch[1000] = {},cha; int rec=1; gets(ch); //直接使用gets…… 题解列表 2023年01月16日 0 点赞 0 评论 487 浏览 评分:9.9
小白能看懂的 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m =…… 题解列表 2023年01月17日 0 点赞 0 评论 251 浏览 评分:0.0
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): …… 题解列表 2023年01月17日 0 点赞 0 评论 531 浏览 评分:9.9
python通过位运算计算二进制中1的数量 摘要:解题思路:#返回n的最后一位1def lowbit(x): return x&(-x)参考代码:l,r=map(int,input().split())def lowbit(n): ret…… 题解列表 2023年01月17日 0 点赞 0 评论 346 浏览 评分:9.9
python位运算解二进制分类1的个数相关问题 摘要:解题思路:lowbit函数用于返回n的最后一位1参考代码:def lowbit(n): return n&(-n)a=0b=0for i in range(1,1001): j=0 …… 题解列表 2023年01月17日 0 点赞 0 评论 328 浏览 评分:9.9
简单方法(两个循环比较) 摘要:```c #include #include //strlen函数需要调用 int main() { char str[100001],out; int len, sum;…… 题解列表 2023年01月17日 1 点赞 8 评论 1092 浏览 评分:10.0
基因相关性(两个数组的相似比例) 摘要:```c #include #include //要用到strlen函数 int main() { char a[501], b[501]; float sim; …… 题解列表 2023年01月17日 0 点赞 4 评论 719 浏览 评分:9.9
二级C语言-公约公倍 (用c写的) 简单步骤!!!!! 摘要: #include int gcd(int c,int d) { if(c%d==0) return d; else gcd(d,c%d…… 题解列表 2023年01月17日 0 点赞 0 评论 457 浏览 评分:9.9
2847: 找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[100000] = {0}; int …… 题解列表 2023年01月17日 0 点赞 0 评论 624 浏览 评分:7.3