[编程入门]Sn的公式求和-题解(Python代码)(附有C代码) 摘要:解题思路:Sn=2+22+222......本题要双重循环,内层循环计算第i个数有i个2进行*10+2,外层循环控制n个数相加。注意事项:注意range不含()n,记得+1。内层循环之前要赋0。Pyt…… 题解列表 2020年06月28日 0 点赞 1 评论 1315 浏览 评分:4.7
[编程入门]自由下落的距离计算-题解(Python代码) 摘要:解题思路:M,N=map(int,input().strip().split())total_meter_num=0for i in range(N): now_high=M/2 tota…… 题解列表 2020年07月02日 0 点赞 0 评论 1097 浏览 评分:4.7
[编程入门]宏定义之闰年判断-题解(C语言代码)思路简单直接 摘要://!!!!!!!#include<stdio.h>#define leap_year(y) (y%4==0&&y%100!=0||y%400==0)int main(){ int y,t; scan…… 题解列表 2020年07月26日 0 点赞 2 评论 1041 浏览 评分:4.7
贷款计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ double a,b,c; int d; scanf("%lf%lf%lf",&a,&b,&c); d=…… 题解列表 2020年08月03日 0 点赞 2 评论 1310 浏览 评分:4.7
蓝桥杯算法提高-输出三个整数的最大数-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if (a>=b…… 题解列表 2020年08月09日 0 点赞 0 评论 814 浏览 评分:4.7
蓝桥杯算法训练-数据交换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,t; scanf("%d %d",&a,&b); prin…… 题解列表 2020年08月18日 0 点赞 0 评论 688 浏览 评分:4.7
33.同学的等待-题解(C语言代码) 摘要:解题思路:简单的贪心思路,注意题目要求注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int maxn = 1e5+3; …… 题解列表 2020年08月22日 0 点赞 0 评论 1029 浏览 评分:4.7
3.百分制成绩转换-题解 简单易懂C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[5]={0}; //用数组存放各个档的人数 int n,x,s; int i,j; s…… 题解列表 2020年08月24日 0 点赞 0 评论 595 浏览 评分:4.7
蓝桥杯算法提高VIP-最长单词-题解(C++代码)超短代码! 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { string str, ans; i…… 题解列表 2020年08月25日 0 点赞 0 评论 975 浏览 评分:4.7
第一个带类的C++程序-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a,b,c; scanf("%d-%d-%d",&a,&b,&c); printf("%d:%d:%…… 题解列表 2020年09月06日 0 点赞 0 评论 754 浏览 评分:4.7