内部收益率,有没有会员大佬把测试用例截一下图发出来看看 摘要:代码就是按照两个优质题解写的C语言版,示例和第一个测试用例都对,第二个就显示超时了。 ```c #include #include int main(void) { int T…… 题解列表 2024年09月10日 0 点赞 0 评论 734 浏览 评分:0.0
巧用string函数,轻松解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char a[100]; char b[100]; scanf…… 题解列表 2024年09月10日 0 点赞 0 评论 427 浏览 评分:0.0
注意换行符! 摘要:解题思路:需要注意要把自++多余的最后一个空元素设为换行符!注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[1…… 题解列表 2024年09月10日 0 点赞 0 评论 190 浏览 评分:0.0
猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=1; cin>>n; for(int i=1…… 题解列表 2024年09月10日 0 点赞 0 评论 318 浏览 评分:0.0
1183题解(c语言代码) 摘要:```c #include int main() { int n; // 记录输入的测试用例数量 int hour_a, hour_b, minute_a, minute_…… 题解列表 2024年09月10日 0 点赞 0 评论 254 浏览 评分:0.0
简单的宏定义 摘要:解题思路:其实可以把宏定义看成一个可以自行设计的自定义函数,但必须注意的是,宏定义的表达式必须与调用的一样,并且数值名称也要一样,如interes如int a,int b;注意事项:参考代码:#inc…… 题解列表 2024年09月11日 1 点赞 0 评论 779 浏览 评分:0.0
简单的替代 摘要:解题思路:无它,只用把判断条件用宏定义表示注意事项:参考代码:#include<stdio.h>#define LAEP_YEAR(y) y%4==0&&y%100!=0||y%400==0int m…… 题解列表 2024年09月11日 1 点赞 0 评论 512 浏览 评分:0.0
利用简单俩for解决 摘要:解题思路:题目要求用6.2f的格式,意思就是用占位符 %6.2f 的形式来输出注意事项:参考代码:#include<stdio.h>int main(){ float n; scanf("%f",&n…… 题解列表 2024年09月11日 0 点赞 0 评论 456 浏览 评分:0.0
使用c语言函数 摘要:解题思路:使用c语言自带的数学函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define compare(a,b,c) d=fmax(a,b),e=fma…… 题解列表 2024年09月11日 1 点赞 0 评论 874 浏览 评分:0.0
[编程入门]电报加密 C语言 摘要:解题思路:gets是不是只能在C语言中使用注意事项:参考代码:#include<stdio.h>#include <string.h>using namespace std;int main(){ …… 题解列表 2024年09月11日 0 点赞 0 评论 599 浏览 评分:0.0