编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:list comprehension注意事项:参考代码:[print(f'{b*100+s*10+g}') for b in range(1,10) for s in ran…… 题解列表 2024年03月03日 0 点赞 0 评论 341 浏览 评分:0.0
三国游戏 贪心算法 摘要:# 三国游戏n = int(input())a= list(map(int,input().split()))b = list(map(int, input().split()))c = list(m…… 题解列表 2024年03月03日 0 点赞 0 评论 1218 浏览 评分:9.3
注意有个空格 摘要:注意事项:注意有个空格!!!!!!!!!!!!!最后一个数字后边有个空格!!!!!!!printf("%d ",stu[i].score[2]);参考代码:#include<stdio.h>#defi…… 题解列表 2024年03月03日 0 点赞 0 评论 344 浏览 评分:0.0
编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:for i in range(20): for j in range (33): for k in range (100): i…… 题解列表 2024年03月03日 0 点赞 0 评论 465 浏览 评分:0.0
[java]运动的抽象与分解 摘要:``` import java.util.Scanner; public class Main { static int L, W, x, y, R, a, v, s; …… 题解列表 2024年03月03日 0 点赞 0 评论 435 浏览 评分:9.9
信息学奥赛一本通T1260-拦截导弹-动态规划 摘要:```cpp #include #include using namespace std; int a[1005],b[1005],dp1[1005],dp2[1005],n; void L…… 题解列表 2024年03月03日 0 点赞 0 评论 360 浏览 评分:0.0
编写题解 1861: 程序员爬楼梯 摘要:解题思路:类似于斐波那契数列不过递推公式为:F(n) = F(n -1) + F(n - 3)注意事项:参考代码:n = int(input())dp = [1, 1, 2, 3]#dp[i] 中 i…… 题解列表 2024年03月03日 0 点赞 0 评论 444 浏览 评分:0.0
累了,休息会 摘要:解题思路:注意事项:参考代码: #include<bits/stdc++.h> using nam…… 题解列表 2024年03月03日 0 点赞 0 评论 439 浏览 评分:9.9
使用Java的BigInteger类迅速解决整除问题 摘要:BigInteger 类是java提供的用于大整数(可以超过long类型范围)计算的类 构造方法:public BigInteger(String val) 获取指定的大整数 常用方法…… 题解列表 2024年03月03日 0 点赞 0 评论 610 浏览 评分:9.9
【C语言题解】蓝桥杯2023年第十四届省赛真题-更小的数 摘要:``` #include //定义数组来存放数的每一位 int number[50050]={0}; int compare (int *a,int *b); int main(){ …… 题解列表 2024年03月03日 0 点赞 0 评论 476 浏览 评分:0.0