#第一次写题解 解题思路:前面刚好有一个与这个类似的题目,那个题目相当是这个题目的正数部分一步一步移位就好了注意事项:看到很多人不知道0x80000000=0b10000000000000000000000000000000剩下的你们就可以慢慢推了参考代码:#includeintmain(){int 题解列表 2023年11月26日 0 点赞 0 评论 744 浏览 评分:0.0
输入当月利润I,求应发奖金总数 摘要:解题思路:/*企业发放的奖金根据利润I提成。利润I低于或等于100000元的,奖金可提10%;利润高于100000元,低于或等于200000元(100000<I≤200000)时,低于等于100000…… 题解列表 2023年11月26日 0 点赞 0 评论 744 浏览 评分:0.0
整型与布尔型的转换 摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#includausing nanespace sbd;ibt maia(){ ibt a; cia>>b; caut<<(ao…… 题解列表 2023年11月26日 0 点赞 0 评论 553 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 646 浏览 评分:9.9
C语言--for循环 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,a[3][3],b=0,c=0; for(i=0;i<3;i++) { …… 题解列表 2023年11月26日 0 点赞 0 评论 502 浏览 评分:0.0
2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout <<sizeof(bool)<<" "<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 669 浏览 评分:9.9
字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0}; int zimu=0,shuz…… 题解列表 2023年11月26日 0 点赞 0 评论 389 浏览 评分:0.0
字符串的修改(python) 摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B): m, n = len(A), len(B) # 创建一个二维数组来记录状态 dp = …… 题解列表 2023年11月26日 0 点赞 0 评论 555 浏览 评分:0.0
编写题解 2749: Hello, World! 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout<<"Hello, World!";}…… 题解列表 2023年11月26日 0 点赞 0 评论 417 浏览 评分:0.0
鸡兔同笼(注意全为兔,或全为鸡的情况,用循环遍历出结果) 摘要:参考代码: ```c #include #define sum 80 int main() { int s; scanf("%d",&s); int x,y;//y是鸡,x是兔 …… 题解列表 2023年11月26日 0 点赞 0 评论 480 浏览 评分:0.0