题解列表

筛选

计算下落距离

摘要:解题思路:反弹高度成指数式递减,因此先将此表达写出注意事项:参考代码:#include<stdio.h>int main(){    float H,M,N,SUM=0;    float i, A=……

哥德巴赫曾猜测

摘要:解题思路:编写一个函数确认两个数是否非素数,并且利用循环得出次数注意事项:参考代码:#include<iostream>using namespace std;int fun(int );int ma……

成绩评定

摘要:解题思路:#include<stdio.h>int main(){ int score; scanf("%d",&score); if(score>=90) { printf("A\n"); } e……

排序问题,江小白yyds

摘要:解题思路:用c++中的sort,直接排序注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ retur……

日期排序vector

摘要:``` #include using namespace std; int cmp(string m,string n) { string a,b; a=m.substr(……

1927: 蓝桥杯算法提高VIP-日期计算 新解法

摘要:解题思路:1、已经知道2011年11月11日是周五,那么可以先计算出任何一年11月11日是周几。2、分两种情况讨论:a 年份在2011年之后的,每增加一年,保存星期几的变量需要加1,如果是闰年需要再增……

1014: [编程入门]阶乘求和

摘要:解题思路:先搞清楚思路,再编程序注意事项:参考代码:n=int(input())Sn=0x=1for i in range(1,n+1):    for j in range(1,n+1):     ……

删除数组中的0元素

摘要:解题思路:先获取一个含0的数组,用for循环排出含0的元素,之后打印新的数组和个数注意事项:要注意的地方都写在代码中了。参考代码:如下……