自定义函数之字符串反转 摘要:解题思路:for循环,倒叙输出注意事项:参考代码:#include <stdio.h>#include <string.h> int main(){char a[100];int i,j;gets(a…… 题解列表 2023年11月20日 0 点赞 0 评论 362 浏览 评分:0.0
进制转换(超简单) 摘要:解题思路:注意事项:注意区别八进制为“%o”,十六进制为“%x”无符号十进制为“%u”有符号十进制为“%d”参考代码:#include <stdio.h>int main(){int a;scanf(…… 题解列表 2023年11月20日 0 点赞 0 评论 637 浏览 评分:0.0
编写题解 1267: A+B Problem 摘要:import java.util.*;public class Main { public static void main(String [] args){ Scanner sc…… 题解列表 2023年11月20日 0 点赞 0 评论 388 浏览 评分:0.0
题解 2824: 求出e的值 摘要: #include using namespace std; int main(){ double e=0,num=1; int n; c…… 题解列表 2023年11月20日 0 点赞 0 评论 355 浏览 评分:0.0
2833: 金币 摘要:``` #include using namespace std; int x,sum=0,j=0,m=1; int main(){ cin>>x; for( int i=1;i…… 题解列表 2023年11月20日 0 点赞 0 评论 365 浏览 评分:0.0
2828: 与7无关的数 摘要:``` #include using namespace std; int n,sum,ans; int main(){ cin>>n; for( int i=1;i…… 题解列表 2023年11月20日 0 点赞 0 评论 344 浏览 评分:0.0
数列极差(Java)题解 摘要:解题思路:1. 首先解决这道题要有一些数学知识,我举例说明,写了四个整数是1,3,5,7 ,第一种结合方式是从小到大结合,1结合3,它们的结果继续结合5,最后得到的结果是最大值,第二种结合方式是从大到…… 题解列表 2023年11月20日 0 点赞 0 评论 673 浏览 评分:0.0
Java编写题解2008: 函数重载练习-比较大小 摘要:解题思路:注意事项:参考代码:import java.util.*;public classMain { public static void main(String[]args){ …… 题解列表 2023年11月20日 0 点赞 0 评论 593 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d", &N); char a[100]; int num = 0; for (i…… 题解列表 2023年11月20日 0 点赞 0 评论 504 浏览 评分:0.0
动态规划-计算字符串距离java 摘要:解题思路:动态规划,dp[][]这里注意一下行列的含义,我们要比对的是str1和str2,所以dp[str1][str2]当然暴力匹配也是可以的,但不是最优解,还有贪心算法,但也不是最优解注意事项:参…… 题解列表 2023年11月20日 0 点赞 0 评论 448 浏览 评分:0.0