自定义函数之字符提取 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>void yy(char a[],char b[]){ int i,j=0; for(i=…… 题解列表 2023年11月26日 0 点赞 0 评论 202 浏览 评分:9.9
大整数加法(C语言) 摘要:解题思路:定义两个字符串 s1 和 s2,用于存储输入的两个大整数。通过 scanf 从标准输入中读取两个字符串。计算两个字符串的长度 la 和 lb,以确定大整数的位数。初始化数组 a 和 b,用于…… 题解列表 2023年11月26日 1 点赞 0 评论 588 浏览 评分:9.9
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y,n; cin>>n>>x>>y; i…… 题解列表 2023年11月26日 0 点赞 0 评论 130 浏览 评分:9.9
题解 2776: A*B问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2023年11月26日 0 点赞 0 评论 189 浏览 评分:9.9
reverse倒序列表 摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums: pr…… 题解列表 2023年11月26日 0 点赞 0 评论 658 浏览 评分:9.9
2752 整型数据类型存储空间大小(C++) 摘要:解题思路:使用sizeof 函数注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<sizeof(int…… 题解列表 2023年11月26日 0 点赞 0 评论 266 浏览 评分:9.9
2753: 浮点型数据类型存储空间大小 摘要:解题思路:使用 sizeof 函数注意事项:请自由参考参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 151 浏览 评分:9.9
2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout <<sizeof(bool)<<" "<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 294 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 284 浏览 评分:9.9
整型与布尔型的转换 摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#includausing nanespace sbd;ibt maia(){ ibt a; cia>>b; caut<<(ao…… 题解列表 2023年11月26日 0 点赞 0 评论 204 浏览 评分:9.9