用while进行解题,易理解的解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); int a=0; int b=0; …… 题解列表 2022年10月23日 0 点赞 0 评论 315 浏览 评分:9.9
逆向思维考虑,五行代码解决!!! 摘要:解题思路:首先审题发现要求猴子第一天摘的桃子数,每天吃前一天的(一半+1)个,第N天还剩1个。最后一天是没有吃的,所以往回推第N-1天的桃子为1*2个,第N-2天就是(1*2+1)*2个.......…… 题解列表 2022年10月23日 0 点赞 0 评论 324 浏览 评分:9.9
编写题解 2837: 年龄与疾病 摘要:解题思路:1)定义4个count计数器2)输出%:'%.2f%%'%n注意事项:参考代码:n=int(input()) #病人数目 ages=list(map(int,input()…… 题解列表 2022年10月23日 0 点赞 0 评论 1038 浏览 评分:9.9
[编程入门]矩阵对角线求和,最容易理解的解法,非常暴力 摘要:解题思路:注意事项:没有丝毫含金量参考代码:x=list(map(int,input().split()))y=list(map(int,input().split()))z=list(map(int…… 题解列表 2022年10月23日 1 点赞 0 评论 1069 浏览 评分:10.0
求圆的面积 摘要:解题思路: 注意事项:注意要写#include<iomanip>头文件参考代码:#include<iostream>#include<iomanip>using namespace std;int m…… 题解列表 2022年10月23日 0 点赞 0 评论 322 浏览 评分:0.0
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 970 浏览 评分:9.3
不知道为什么运行错误 摘要:解题思路:先构建1,2,3,5,8******这个数列存在malloc出来的数组里,再进行后一项除前一项操作注意事项:进行除法,注意强制类型转换,需要对每一个int都转参考代码:#include <s…… 题解列表 2022年10月23日 0 点赞 0 评论 361 浏览 评分:9.9
优质题解 题解1044:三个字符串的排序 摘要:# 1044: [编程入门]三个字符串的排序 ## 知识点 ### 知识点1:字符数组的输入、字符数组的长度 在C++语言的基础库上,要另外导入`cstdio`库和`cstring`…… 题解列表 2022年10月23日 0 点赞 0 评论 4635 浏览 评分:9.4
有一门课不及格的学生 摘要:解题思路:注意事项:当且仅当两门中只有一门不及格时输出为1参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <…… 题解列表 2022年10月23日 0 点赞 1 评论 639 浏览 评分:9.0
编写题解 2927: 二分法求函数的零点 摘要:解题思路:主函数-f(x)函数-ok函数循环注意事项: 二分法参考代码:#include<stdio.h>double f(double x);void ok(double a,double b); …… 题解列表 2022年10月23日 0 点赞 0 评论 768 浏览 评分:9.9