2911: 连续出现的字符 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2911: 连续出现的字符 import java.util.Scanner; public class t_2911 …… 题解列表 2024年02月16日 0 点赞 0 评论 261 浏览 评分:0.0
最长单词2(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2961: 最长单词2 import java.util.Scanner; public class t_2961 {…… 题解列表 2024年02月16日 0 点赞 0 评论 227 浏览 评分:0.0
C++过河卒(动态规划) 摘要:解题思路:首先考虑暴力解法,果不其然会超时,然后发现每个点的状态只会由左边一个点和上边一个点转化而来,想到用dp,令dp[x][y]为到该点的路径数量,可知dp[x][y]=dp[x-1][y]+dp…… 题解列表 2024年02月16日 0 点赞 0 评论 412 浏览 评分:0.0
整数序列的元素最大跨度值C 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],min,max; scanf("%d",&n); for(i=…… 题解列表 2024年02月16日 0 点赞 0 评论 166 浏览 评分:0.0
编写题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k = 0; scanf("%d", &k); double sn = 0; int i = 0; w…… 题解列表 2024年02月16日 0 点赞 0 评论 283 浏览 评分:0.0
~~【Java】版本~~ 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2024年02月16日 0 点赞 0 评论 243 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:注意事项:根据答案写代码,过程简单参考代码:N = int(input())a=1b=2s = []for i in range(0,N-1): b,a = a+b,b c = …… 题解列表 2024年02月17日 0 点赞 0 评论 163 浏览 评分:0.0
奥运奖牌计数C解 摘要:解题思路:注意事项:很简单的,一步步来就是参考代码:#include<stdio.h>int main(){ int n,i,j,a[20][3],sum1=0,sum2=0,sum3=0; …… 题解列表 2024年02月17日 0 点赞 0 评论 308 浏览 评分:0.0
多边形内角和C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum,i; scanf("%d",&n); int a[n+1]; sum…… 题解列表 2024年02月17日 0 点赞 0 评论 258 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int Is_wushu(int n) { int arr…… 题解列表 2024年02月17日 0 点赞 0 评论 170 浏览 评分:0.0