题解列表

筛选

蓝桥杯算法提高VIP-栅格打印问题 (C语言代码)

摘要:解题思路:一开始以为没有规律,仔细数了栅格每行每列里“+-”、“| ”的个数,很快找到了答案:输入行数m、列数n之后,至少输出一行一列,前m行的上半部分形如"+-"重复出现n次,以"+\n"结尾,前m……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int n){ int i = 0; double sum = 1; for (i = 1; i <= n; i……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ctof(int c){ int F; F = 32 + c * 9 / 5; return F;}int main(){ in……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, i, j, c = 0, l = 0, max = 0; doub……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float grade; int a = 0, b = 0, c = 0; while (scanf("%f",……

字符串内排序 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ char s[200],t; int i,……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N, i, j, k; int num[500]; scanf("%d", &N); for (i = ……

此解可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i, j, k, count = 1, max = 0, t; while (scanf("%d %d"……

此解可AC(C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N, i, j, sum, k; int num[100][100]; while (scanf("%d……