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 评论 221 浏览 评分:9.9
编写题解 1231: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() { int n, i, j; int a[30][30]; while (scanf("%…… 题解列表 2023年01月23日 0 点赞 0 评论 152 浏览 评分:0.0
c语言解决机器人繁殖 摘要:解题思路:x为初始机器人数量,n为经过的年数,s为机器人总数。分别列出每年复制出的机器人和总数!每年出生为 前一年出生的两倍减去飞向太空的一个。第一年出生:2x-1 第二年出生:2(第一年出生)-1…… 题解列表 2023年01月23日 0 点赞 0 评论 333 浏览 评分:9.6
回文串-字符串处理(C++) 摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256; //判断字符串str是否是“回文串”bool judge(char str[…… 题解列表 2023年01月23日 0 点赞 0 评论 220 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和(水题) 摘要:```c #include long long f(int n){ if(n==1) return 1; else return f(n-1)*n; } int main(){ …… 题解列表 2023年01月23日 0 点赞 0 评论 213 浏览 评分:0.0
C语言训练-斐波纳契数列(水题) 摘要:```c #include int main(){ int n,i,a[100]; scanf("%d",&n); a[0]=1;a[1]=1; for(i=0;i…… 题解列表 2023年01月23日 0 点赞 0 评论 228 浏览 评分:0.0
C语言训练-尼科彻斯定理(水题) 摘要:```c #include int main(){ int n,i,m; scanf("%d",&n); printf("%d*%d*%d=%d=",n,n,n,n*n*n);…… 题解列表 2023年01月23日 0 点赞 0 评论 221 浏览 评分:0.0
贪心+大数取余 摘要:解题思路:注意事项:参考代码:import osimport sys# 请在此输入您的代码"""了解进制的规律,需要注意A>=B"""# 输入数据n=eval(input())ma=eval(inpu…… 题解列表 2023年01月23日 0 点赞 0 评论 607 浏览 评分:4.0
利用scanf的特性 摘要:解题思路:注意事项:注意最后一个单词有 . 号参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1000][500]; int …… 题解列表 2023年01月23日 0 点赞 0 评论 413 浏览 评分:9.0
1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:while True: try: a, b, c = map(str, input().split()) if (c == '+…… 题解列表 2023年01月22日 0 点赞 0 评论 224 浏览 评分:0.0