2791: 计算邮资 摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc…… 题解列表 2024年11月17日 0 点赞 0 评论 386 浏览 评分:9.9
The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 185 浏览 评分:0.0
加油啊大家 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int a, b, c, d, e, f, n = 1; while(n++…… 题解列表 2024年11月17日 0 点赞 0 评论 250 浏览 评分:0.0
非常简洁易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int factor_sum(int n); int main(void) { int i, sum1,sum2; …… 题解列表 2024年11月17日 1 点赞 0 评论 309 浏览 评分:0.0
多动脑子,简化代码 摘要:解题思路:注意事项:参考代码://机器思维太单一 #include<stdio.h> #include<stdbool.h> #include<string.h>//strlen好用 bool…… 题解列表 2024年11月17日 0 点赞 0 评论 267 浏览 评分:0.0
超级简略版 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a=15,b=25,h,y=150; float m; h=y*2/a; m=(a+b)*h/2.0…… 题解列表 2024年11月17日 1 点赞 0 评论 628 浏览 评分:9.9
很简单的题 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,…… 题解列表 2024年11月17日 1 点赞 1 评论 737 浏览 评分:7.3
1480 模拟计算器 初学者一定能懂 摘要:解题思路:用强制转换把ch转换成int类型注意事项:需要理解强制转换的定义,括号里面的是需要转换到的数据类型。e.g #include <stdio.h> int main() …… 题解列表 2024年11月17日 3 点赞 0 评论 477 浏览 评分:9.9
编写题解 1099: 校门外的树(C语言) 摘要:解题思路:把路设为有路长+1的元素的数组,初始化为0代表有树,把后续的坐标当做数组的序号,坐标范围内的赋值1代表没树,最后统计0的数目即可。注意事项:参考代码:#include <stdio.h> …… 题解列表 2024年11月17日 0 点赞 0 评论 699 浏览 评分:0.0
回文字符串四种情况 摘要:解题思路:1.字符串s本身回文aaa2.全为"lqb"字符,补充另一半即可lqb ==> bql_lqb3.前部分回文ioilqb ==> bql_ioilqb4.部分回文bioi_blq ==>ql…… 题解列表 2024年11月17日 3 点赞 0 评论 571 浏览 评分:9.0