题解列表
超级超级简单的2752
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; short b; printf("%d %d",sizeof(a),sizeof(b)); ret……
比较复杂,不建议参考
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int t,n; while(scanf("%d",&t)!=EOF) { n=……
混合背包 C语言网最阴的题!
摘要:解题思路:注意事项: 不要被题目骗了,数组要开大一点,样例输出也是错的,服了这题目!参考代码:#include"bits/stdc++.h"
using namespace std;
// 定……
多重背包,嘿嘿嘿嘿嘿
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义全局变量n和m,分别表示物品数量和背包容量
int n, m;……
2073 安之 亲和串训练
摘要:解题思路:在s1字符串后连接一个s1,用find()函数进行搜索即可。注意事项:参考代码:#include <iostream>#include <string>using namespace std……
普普通通的解题方法(for循环)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10],t; for (i = 0;i < 10;i++) { scanf("%d",&a[……
[编程入门]自定义函数处理素数-题解(Java代码)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……