蓝桥杯2022年第十三届省赛真题-数位排序 摘要:解题思路:注意事项:参考代码:n=int(input())m=int(input())d={}for i in range(1,n+1): s=list(map(int,str(i))) …… 题解列表 2022年04月16日 0 点赞 3 评论 1551 浏览 评分:8.9
1067: 二级C语言-分段函数 摘要:解题思路:本题这种判断区间互斥的情况,最好用 if else 语句,写成一排 if 语句看起来很清晰,实际会增加程序的执行次数。注意事项:abs() 和 fabs() 都是求绝对值的,一个在 cstd…… 题解列表 2022年04月16日 0 点赞 0 评论 964 浏览 评分:9.9
简单易懂,很自然的过程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,t,k=0; scanf("%d",&n); int a[n],b[10…… 题解列表 2022年04月15日 0 点赞 0 评论 390 浏览 评分:0.0
[编程入门]数组插入处理 摘要:解题思路:如果插入的数小于a[i]而且大于a[i+1],则应该将a[i+1]后面的数依次向后移一位,并且将n给a[i+1]注意事项: 数组里面只能存放10个数参考代码:#include<stdio.h…… 题解列表 2022年04月15日 0 点赞 0 评论 381 浏览 评分:0.0
大家就这样看看把。。。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str1; cin>>str1; in…… 题解列表 2022年04月15日 0 点赞 1 评论 1020 浏览 评分:7.3
写了半天。。 摘要:解题思路:行元素加列元素注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j=n,k,cnt,nu…… 题解列表 2022年04月15日 0 点赞 0 评论 305 浏览 评分:0.0
1955: 贷款计算 (c语言) 摘要:解题思路:每月还款金额= (贷款本金/ 还款总月数)+(本金 - 已归还本金累计额)×每月利率输入注意事项:题目要第一个月 所以 总金*10000*利率参考代码:/*针对等额本金还款模式的客户,写一个…… 题解列表 2022年04月15日 0 点赞 1 评论 1819 浏览 评分:9.9
应该不会要这么多for循环,但不失为一种直肠子的解法 摘要:解题思路:注意事项:参考代码:n = int(input())list_m = list(map(int,input().strip().split()))m = int(input())other …… 题解列表 2022年04月15日 0 点赞 0 评论 327 浏览 评分:0.0
矩阵求和-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int a[3][3],i,j; int sum=0,count=0; for(i=0…… 题解列表 2022年04月15日 0 点赞 0 评论 396 浏览 评分:0.0
信息学奥赛一本通T1433-愤怒的牛 摘要:解题思路:又是一道二分答案,用for循环一个一个穷举会超时,这里用sort拍好栅栏的序,然后判断当前的mid能装多少头牛,多了就说明可以继续降低距离,少了就增加距离注意事项:参考代码:#include…… 题解列表 2022年04月14日 0 点赞 1 评论 1121 浏览 评分:9.5