信息学奥赛一本通T1260-拦截导弹-动态规划 摘要:```cpp #include #include using namespace std; int a[1005],b[1005],dp1[1005],dp2[1005],n; void L…… 题解列表 2024年03月03日 0 点赞 0 评论 184 浏览 评分: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 评论 233 浏览 评分:0.0
注意有个空格 摘要:注意事项:注意有个空格!!!!!!!!!!!!!最后一个数字后边有个空格!!!!!!!printf("%d ",stu[i].score[2]);参考代码:#include<stdio.h>#defi…… 题解列表 2024年03月03日 0 点赞 0 评论 177 浏览 评分:0.0
编写题解 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 评论 128 浏览 评分:0.0
复习排序(本题用最后一种方法,前几个也可以) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin >> n; int a[n],i=-1…… 题解列表 2024年03月03日 0 点赞 0 评论 140 浏览 评分:0.0
贪心算法——C 填充 摘要:解题思路:将字符'?'当作一个万能字符(就是为?就成为一个字串),上代码注意事项:参考代码:#include <stdio.h>#include <string.h>char a[10…… 题解列表 2024年03月03日 0 点赞 0 评论 362 浏览 评分:0.0
3009: 判断闰年 摘要:解题思路:闰年两种判定方法:要么能被4整除且不能被100整除,或者能被400整除可得参考代码:#include<iostream> using namespace std; int main() …… 题解列表 2024年03月03日 0 点赞 0 评论 214 浏览 评分:0.0
找规律找规律 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin >> n >> m; int a[…… 题解列表 2024年03月03日 0 点赞 0 评论 200 浏览 评分:0.0
去掉余数为2的数即可 摘要:关键在于,如何判断某个数是不是平方差 ```c++ #include using namespace std; bool function(int x) { bool res =…… 题解列表 2024年03月03日 0 点赞 0 评论 216 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; int qian = 1000; int hou = 1000; scanf_s("%d…… 题解列表 2024年03月04日 0 点赞 0 评论 135 浏览 评分:0.0