题解列表

筛选

成绩评定

摘要:解题思路:#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的元素,之后打印新的数组和个数注意事项:要注意的地方都写在代码中了。参考代码:如下……

编写题解 1169: 绝对值排序

摘要:while True:     a=list(map(int,input().split()))     if a[0] == 0:         break     a = a[1:] ……