不用使用数组,直接根据题意求解 摘要:#include<stdio.h> #include<math.h> int main() { int n,m; while(~scanf("%d %d",&n,&m)){ int…… 题解列表 2021年04月03日 0 点赞 0 评论 284 浏览 评分:8.0
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:lst = list(map(int,input().split())) print(max(lst))…… 题解列表 2021年04月04日 0 点赞 0 评论 709 浏览 评分:8.0
C语言代码Fibonacci 数列与黄金分割 超简单 摘要: #include #include double f(long n) { if(n==1 || n==2) return 1…… 题解列表 2021年04月05日 0 点赞 0 评论 691 浏览 评分:8.0
蓝桥杯算法提高VIP-交换Easy 摘要:参考代码:n, m = map(int, input().split())ls = list(map(int, input().split()))for i in range(m): a, b …… 题解列表 2021年04月08日 0 点赞 0 评论 476 浏览 评分:8.0
简单解法(C语言) 摘要:解题思路:每输入一个数就判断是不是为0,为0输出,不为0忽略。注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); int x…… 题解列表 2021年04月09日 0 点赞 1 评论 578 浏览 评分:8.0
注意使用while循环语句 摘要:#include<stdio.h> #include<math.h> int main() { int n; while(~scanf("%d",&n)){ if(n!=0){ …… 题解列表 2021年04月10日 0 点赞 0 评论 767 浏览 评分:8.0
[编程入门]1024:矩阵对角线求和 摘要:解题思路:a[3][3]:a表示定义a,[3][3]表示3行3列,接下来的两个for循环就代表输入a的3行3列,然后程序就输出了第一行第一列,加第二行第二列,加第三行第三列,第一行第三列,加第二行第二…… 题解列表 2021年04月11日 0 点赞 5 评论 467 浏览 评分:8.0
二级C语言-最小绝对值(C语言) 摘要:解题思路:在数据输入是标记最小值的下标,然后把数组数据替换。注意事项:最后一个数后面不用输出空格。参考代码:#includeint main(){ int a[10]={},i,num,t; …… 题解列表 2021年04月12日 0 点赞 0 评论 634 浏览 评分:8.0
Sine之舞暴力法 摘要:解题思路:注意事项:参考代码:n = int(input())if n==1: print("sin(1)+1")else: Sn = "(sin(1)+"+str(n)+")" f…… 题解列表 2021年04月13日 0 点赞 0 评论 374 浏览 评分:8.0
换一个思路的题解 摘要:这道题几乎是所有人都听过的。。。 我记得我以前上初中时好像还做过。。。 今天偶然发现这道题落下了。。。于是我换了一个新的想法 不去暴搜鸡的数量,去搜索钱的数量(主要是因为小鸡一文钱三只) …… 题解列表 2021年04月13日 0 点赞 1 评论 693 浏览 评分:8.0