2794:求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,Y,i; int h=0; float y; sca…… 题解列表 2024年09月09日 0 点赞 0 评论 437 浏览 评分:0.0
巧用布尔型 摘要:解题思路::很简单,只需要设置一个布尔型变量即可,在自定义函数中,在2~n-1中遍历,凡是为整除的更新布尔型变量并返回即可注意事项:参考代码:#include<iostream>using names…… 题解列表 2024年09月10日 1 点赞 0 评论 317 浏览 评分:0.0
直接行列互换 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[3][3]; for(int i=0;i<3…… 题解列表 2024年09月10日 0 点赞 0 评论 518 浏览 评分:0.0
字符串与字符的应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; for(int i=0;i<100;i…… 题解列表 2024年09月10日 0 点赞 0 评论 123 浏览 评分:0.0
内部收益率,有没有会员大佬把测试用例截一下图发出来看看 摘要:代码就是按照两个优质题解写的C语言版,示例和第一个测试用例都对,第二个就显示超时了。 ```c #include #include int main(void) { int T…… 题解列表 2024年09月10日 0 点赞 0 评论 589 浏览 评分:0.0
巧用string函数,轻松解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char a[100]; char b[100]; scanf…… 题解列表 2024年09月10日 0 点赞 0 评论 335 浏览 评分:0.0
注意换行符! 摘要:解题思路:需要注意要把自++多余的最后一个空元素设为换行符!注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[1…… 题解列表 2024年09月10日 0 点赞 0 评论 105 浏览 评分: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 评论 246 浏览 评分:0.0
1183题解(c语言代码) 摘要:```c #include int main() { int n; // 记录输入的测试用例数量 int hour_a, hour_b, minute_a, minute_…… 题解列表 2024年09月10日 0 点赞 0 评论 162 浏览 评分:0.0
简单的宏定义 摘要:解题思路:其实可以把宏定义看成一个可以自行设计的自定义函数,但必须注意的是,宏定义的表达式必须与调用的一样,并且数值名称也要一样,如interes如int a,int b;注意事项:参考代码:#inc…… 题解列表 2024年09月11日 1 点赞 0 评论 665 浏览 评分:0.0