编写题解 1132: C语言训练-最大数问题(python) 摘要:~~~python def main(): L = list(map(int,input().split())) #另一个测试集是逐行输入的 while True: …… 题解列表 2024年10月13日 0 点赞 0 评论 562 浏览 评分:9.9
3028: 数的计数(Noip2001) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 1001int n, f[N];int main(){ scanf("%d", &n); f[1] =…… 题解列表 2024年10月14日 0 点赞 0 评论 621 浏览 评分:6.0
不吉利日期 —— 适合初学者理解(Java实现) 摘要:解题思路:注意事项: 注意对7求余循环得到星期参考代码:import java.util.Scanner; public class Main { public static voi…… 题解列表 2024年10月14日 0 点赞 0 评论 420 浏览 评分:0.0
1483: 蓝桥杯算法提高VIP-数组替换(python) 摘要: …… 题解列表 2024年10月14日 0 点赞 0 评论 360 浏览 评分:9.9
1491: 蓝桥杯算法提高VIP-交换Easy(python) 摘要:~~~python def swap(L,x,y): tmp = L[x-1] L[x-1] = L[y-1] L[y-1] = tmp def main(): …… 题解列表 2024年10月14日 0 点赞 0 评论 341 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 (C语言)不用循环 只用选择 摘要:原题:[编程入门]数字的处理与判断 - C语言网 (dotcpp.com) 参考代码: #include int main(){ int x,a,b,c,d,e; char y; scan…… 题解列表 2024年10月14日 1 点赞 0 评论 493 浏览 评分:9.9
1030: [编程入门]二维数组的转置(python) 摘要:~~~python arr = [list(map(int,input().split())) for i in range(3)] arr = [[arr[j][i] for j in rang…… 题解列表 2024年10月14日 2 点赞 0 评论 503 浏览 评分:10.0
1069: 二级C语言-寻找矩阵最值(python) 摘要:~~~python def main(): n = int(input()) arr = [list(map(int,input().split())) for i in ran…… 题解列表 2024年10月14日 0 点赞 0 评论 466 浏览 评分:9.9
二分法求函数的零点 摘要:解题思路:由题意知 函数在1.5~2.4之间只有一个根,且函数在1.5>0,2.4<0.通过定义一个变量c来不断的二分边界 得到根的值 再把他保留6位小数输出,注意事项:多喝热水参考代码:#inclu…… 题解列表 2024年10月14日 2 点赞 1 评论 633 浏览 评分:9.9
并查集加一次扫描 摘要:解题思路:并查集求最大联通快、然后扫描的时候 相邻不在同一个并查集就直接把两个集合加起来取最大注意事项:参考代码:#include <iostream>#include<vector> #includ…… 题解列表 2024年10月14日 9 点赞 0 评论 2491 浏览 评分:10.0