1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if…… 题解列表 2023年01月15日 0 点赞 0 评论 224 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int product(int n){ int s; if(n==0) return s=1; else …… 题解列表 2023年01月15日 0 点赞 0 评论 213 浏览 评分:0.0
1094基础解法(Python) 摘要:解题思路:注意split()的用法即可注意事项:空一行是print(),空两行是print('\n')参考代码:n = int(input())lst = []while True :…… 题解列表 2023年01月15日 0 点赞 0 评论 324 浏览 评分:0.0
为啥这样通不过呀(我不理解) 摘要: #include #include #include int main() { char a[20]; gets(a); …… 题解列表 2023年01月15日 0 点赞 0 评论 427 浏览 评分:0.0
字符串内排序 (选择排序) 摘要:解题思路:本题采用选择排序法。第一趟找出字符串中最小的字符,然后从该字符后重新找到最小字符。以此类推。注意事项:参考代码:char a[200];// int n; char t; while (ge…… 题解列表 2023年01月15日 0 点赞 0 评论 310 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:在Sn中,加和项数由n决定,最后一项为‘2’*n,对n+1建立for循环依次得出Sn中每一项,最后加和。参考代码:n = int(input())m = 0for i in range(1,…… 题解列表 2023年01月15日 0 点赞 0 评论 333 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:建立三个for循环依次求和a,b,c参考代码:a, b, c = map(int, input().split())A = 0for i in range(1, a+1): A += …… 题解列表 2023年01月15日 0 点赞 0 评论 231 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-成绩分析 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[10000];int main(){ int n,i,max,min; scanf("%d",&n); …… 题解列表 2023年01月15日 0 点赞 0 评论 564 浏览 评分:0.0
用stl构建链表。很快就能解决 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;list <int> node;int main(){ int n;cin >> n…… 题解列表 2023年01月15日 0 点赞 0 评论 296 浏览 评分:0.0
简单易懂矩阵对角线求和 摘要:解题思路:数组,循环,条件注意事项:输入数组时格式为a[i][j],a或a[3][3]都是错的参考代码:#include<stdio.h>int main(){ int i,j,a[3][3]; in…… 题解列表 2023年01月15日 0 点赞 0 评论 295 浏览 评分:0.0