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