回文串-字符串处理(C++) 摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256; //判断字符串str是否是“回文串”bool judge(char str[…… 题解列表 2023年01月23日 0 点赞 0 评论 363 浏览 评分:0.0
c语言解决机器人繁殖 摘要:解题思路:x为初始机器人数量,n为经过的年数,s为机器人总数。分别列出每年复制出的机器人和总数!每年出生为 前一年出生的两倍减去飞向太空的一个。第一年出生:2x-1 第二年出生:2(第一年出生)-1…… 题解列表 2023年01月23日 0 点赞 0 评论 493 浏览 评分:9.6
编写题解 1231: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() { int n, i, j; int a[30][30]; while (scanf("%…… 题解列表 2023年01月23日 0 点赞 0 评论 333 浏览 评分:0.0
1579: 蓝桥杯算法提高VIP-陶陶摘苹果2 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())k=list(map(int,input().split()))s=0for i in k: if i>(m…… 题解列表 2023年01月23日 0 点赞 0 评论 351 浏览 评分:9.9
弟弟的作业(python代码) 摘要:import sys def jud(x): m = 0 for i in x: if i == '-' or i == & 题解列表 2023年01月23日 0 点赞 0 评论 325 浏览 评分:0.0
2955: 判决素数个数(C语言满分题解 摘要:解题思路:题目的要求是:输入两个整数X和Y,输出X与Y之间的素数个数(已知X要小于Y);注意事项:①注意有可能出现X大于Y的情况,需要设置一个变量t来交换X与Y的值; ②X…… 题解列表 2023年01月23日 0 点赞 0 评论 1013 浏览 评分:8.3
Tom数(水题) 摘要:```c #include int main(){ long long n,sum,i; while(scanf("%lld",&n)!=EOF){ sum=0; …… 题解列表 2023年01月24日 0 点赞 0 评论 329 浏览 评分:0.0
自定义函数处理素数 摘要:解题思路:傻瓜解法,遍历2到n注意事项:参考代码:def sushu(n): for i in range(2,n) : if n%i==0: print('not pr…… 题解列表 2023年01月24日 0 点赞 0 评论 359 浏览 评分:0.0
内码对称问题 摘要:解题思路:注意事项:参考代码:sum1 = 0try: while True: x=int(input()) y=format(x,'b') …… 题解列表 2023年01月24日 0 点赞 0 评论 454 浏览 评分:0.0
编写题解 1402: 简单的字符串(独家复杂方法) 摘要:###都拿去吧!应该很少有人会这样写 ```cpp #include using namespace std; int main() { int b[27]={0}; int n; …… 题解列表 2023年01月24日 0 点赞 0 评论 484 浏览 评分:9.9