自定义函数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<iomanip>double fact(double n) …… 题解列表 2022年10月23日 0 点赞 0 评论 529 浏览 评分:9.9
JAVA解三个数最大值 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){//TODO自动生成的方法存根Scannersc=newScanner(System.in);inta=sc.nextIn 题解列表 2022年10月23日 0 点赞 0 评论 480 浏览 评分:0.0
简单的数学题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll x,y;int main(){ …… 题解列表 2022年10月23日 0 点赞 0 评论 502 浏览 评分:9.9
编写题解 2847: 找第一个只出现一次的字符 解题思路:Pythoncount()方法用于统计字符串里某个字符或子字符串出现的次数。注意事项:1)语法:str.count(sub,start=0,end=len(string))2)参数解释:sub--搜索的子字符串start--字符串开始搜索的位置。 题解列表 2022年10月23日 0 点赞 0 评论 774 浏览 评分:7.5
编写题解 2846: 统计数字字符个数 摘要:解题思路:str.isdigit(),判断字符是否为数字注意事项:参考代码:n=input() count=0 for i in n: if i.isdigit(): #判断字符是否为数…… 题解列表 2022年10月23日 0 点赞 0 评论 1390 浏览 评分:9.9
编写题解 2927: 二分法求函数的零点 摘要:解题思路:主函数-f(x)函数-ok函数循环注意事项: 二分法参考代码:#include<stdio.h>double f(double x);void ok(double a,double b); …… 题解列表 2022年10月23日 0 点赞 0 评论 977 浏览 评分:9.9
有一门课不及格的学生 摘要:解题思路:注意事项:当且仅当两门中只有一门不及格时输出为1参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <…… 题解列表 2022年10月23日 0 点赞 1 评论 842 浏览 评分:9.0
优质题解 题解1044:三个字符串的排序 #1044:[编程入门]三个字符串的排序##知识点###知识点1:字符数组的输入、字符数组的长度在C++语言的基础库上,要另外导入`cstdio`库和`cstring`库,用于使用`gets()`函数输入字符数组,以及使用`strlen()`函数计算字符数组的长度。 题解列表 2022年10月23日 0 点赞 0 评论 4926 浏览 评分:9.4
不知道为什么运行错误 摘要:解题思路:先构建1,2,3,5,8******这个数列存在malloc出来的数组里,再进行后一项除前一项操作注意事项:进行除法,注意强制类型转换,需要对每一个int都转参考代码:#include <s…… 题解列表 2022年10月23日 0 点赞 0 评论 549 浏览 评分:9.9
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 1159 浏览 评分:9.3