高精度乘法-结构体实现 摘要:解题思路:小学乘法运用到编程。。。注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;struct bign{ int d…… 题解列表 2024年04月25日 0 点赞 0 评论 438 浏览 评分:9.9
位操作交换数字 摘要:解题思路:a^a=0 0^a=a注意事项:参考代码:#include<stdio.h>#define change(a,b) {a=a^b;b=a^b;a=a^b; }int main(){int …… 题解列表 2024年04月26日 0 点赞 0 评论 233 浏览 评分:0.0
2135: 信息学奥赛一本通 T1271-潜水员 摘要:解题思路: 01 背包,f[i][j] 表示i氧j氮气瓶所需要的最小重量,(W) 重量维度优化省略, 因此以倒序遍历i,j 注意事项:当i - x 为负数时注意越界,因此取max(0,i-x)参考代码…… 题解列表 2024年04月26日 0 点赞 0 评论 222 浏览 评分:9.9
用c语言输出字符菱形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf(" %c",a); printf("\n"); …… 题解列表 2024年04月26日 0 点赞 0 评论 479 浏览 评分:0.0
编写题解 1196: 去掉空格(编程入门) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr[101]={0}; cha…… 题解列表 2024年04月26日 0 点赞 0 评论 262 浏览 评分:0.0
2136: 信息学奥赛一本通T1272-分组背包 摘要:解题思路:分组背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 40;…… 题解列表 2024年04月26日 0 点赞 0 评论 193 浏览 评分:9.9
1738-排序(由小到大*多数据排序) 摘要:解题思路:用数组储存数据,两个for循环遍历数据,比较大小交换位置注意事项:会用到new获取数组大小参考代码:#include <iostream>using namespace std;void s…… 题解列表 2024年04月26日 0 点赞 2 评论 401 浏览 评分:9.9
结构体之时间设计(利用Java自带的时间类) 摘要:解题思路:注意事项:参考代码:import java.text.ParseException; import java.text.SimpleDateFormat; import java.uti…… 题解列表 2024年04月26日 0 点赞 0 评论 255 浏览 评分:9.9
2843: 计算2的N次方 (题目信息有误,某个测试点的N=0,解题N≥0) 摘要:倒数第3个测试点可能是N=0,所以需要考虑N=0的情况。 ```c #include #include int main() { int a[100]={1},s[1…… 题解列表 2024年04月27日 1 点赞 1 评论 261 浏览 评分:10.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:# include<stdio.h> int fun(int n) { return (n<=3?n:fun(n-1)+fun(n-3)); } int …… 题解列表 2024年04月27日 0 点赞 0 评论 346 浏览 评分:0.0