超级超级简单的2752 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; short b; printf("%d %d",sizeof(a),sizeof(b)); ret…… 题解列表 2024年11月22日 2 点赞 0 评论 943 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,c=0,d=0,e=0; scanf("%d",&n); while(n)…… 题解列表 2024年11月22日 0 点赞 0 评论 292 浏览 评分:0.0
比较复杂,不建议参考 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int t,n; while(scanf("%d",&t)!=EOF) { n=…… 题解列表 2024年11月22日 0 点赞 0 评论 207 浏览 评分:0.0
混合背包 C语言网最阴的题! 摘要:解题思路:注意事项: 不要被题目骗了,数组要开大一点,样例输出也是错的,服了这题目!参考代码:#include"bits/stdc++.h" using namespace std; // 定…… 题解列表 2024年11月22日 0 点赞 0 评论 219 浏览 评分:0.0
多重背包,嘿嘿嘿嘿嘿 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和m,分别表示物品数量和背包容量 int n, m; …… 题解列表 2024年11月22日 0 点赞 0 评论 198 浏览 评分:0.0
2073 安之 亲和串训练 摘要:解题思路:在s1字符串后连接一个s1,用find()函数进行搜索即可。注意事项:参考代码:#include <iostream>#include <string>using namespace std…… 题解列表 2024年11月22日 0 点赞 0 评论 247 浏览 评分:0.0
普普通通的解题方法(for循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10],t; for (i = 0;i < 10;i++) { scanf("%d",&a[…… 题解列表 2024年11月22日 0 点赞 0 评论 747 浏览 评分:0.0
移动路线,简单递推 摘要:解题思路:转换成从左上到右下注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量m和n,以及二维数组k并初始化为0 i…… 题解列表 2024年11月22日 0 点赞 0 评论 252 浏览 评分:0.0
[编程入门]自定义函数处理素数-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年11月23日 0 点赞 0 评论 250 浏览 评分:0.0
平淡地用两个单链表解决 摘要:解题思路:先说一下我对该题的理解从一层楼飞到另一层楼时,其中间不能有高处于两楼高之间的,因为有的话应当先飞往该楼再飞下一楼,否则会少飞一个使经过层数不是最大值。以该规则为基础可以使计算新的高度的经过层…… 题解列表 2024年11月23日 0 点赞 0 评论 220 浏览 评分:0.0