Java题解:动态规划 摘要:解题思路:注意事项:参考代码:package com.test.eazy;import java.util.Scanner;public class eazy10 { static final …… 题解列表 2024年03月28日 0 点赞 0 评论 543 浏览 评分:9.9
不用循环,总共21行代码搞定!! 摘要: **本题的思路大致为先将给出的四个数字进行四选三的组合,再将选出来的三个数字进行排序,那么就有两种实现方案: (1)将给出的四个数字写进数组里,进行数组的循环挑选遍历; (2)将选出来的三个数…… 题解列表 2024年03月28日 2 点赞 0 评论 858 浏览 评分:10.0
1866: 三位数反转 (公式简化计算结果)(学习 @弥城猫巷 本题代码中的补零) 摘要:思路: 三位数abc: a×100+b×10+c×1 三位数反转cba: c×100+b×10+a×1 abc - cba = 99×(a-c) cba = abc - 99×(a-c…… 题解列表 2024年03月28日 0 点赞 1 评论 466 浏览 评分:0.0
判断元音字母出现的位置 摘要: #include #include #include /* run this program using the console pauser or add…… 题解列表 2024年03月28日 0 点赞 0 评论 395 浏览 评分:0.0
简单的矩阵加法 摘要: #include int main() { int n,m; while((scanf("%d%d",&n,&m))!=EOF) …… 题解列表 2024年03月28日 0 点赞 0 评论 540 浏览 评分:6.0
简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())d=0da=(1,3,5,7,8,10,12)xiao=(4,6,9,11)for i in range(1,…… 题解列表 2024年03月28日 1 点赞 0 评论 357 浏览 评分:9.9
编写题解 1847: 字符串中间和后边*号删除 摘要:解题思路:注意事项:参考代码:#include<string.h>#include<stdio.h>int fun(char* a){ while (*a == '*') { …… 题解列表 2024年03月28日 0 点赞 0 评论 369 浏览 评分:9.9
P0505求n!的最右端非零数含详解 C语言 百分百通过 摘要:解题思路: 灵感来源于n个数相乘最右侧的数是什么?这个题目 首先我们要是直接使用阶乘的结果来进行判断的话int类型在13!时失败,最大的float类型在35!时失败,因而我们想要通过正常算…… 题解列表 2024年03月28日 0 点赞 0 评论 438 浏览 评分:9.9
Java的动态规划 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class BookBuying { public static void main(String[…… 题解列表 2024年03月27日 0 点赞 0 评论 444 浏览 评分:9.9
选数异或(线段树思路详解) 摘要:解题思路: 思路详解在:https://www.acwing.com/solution/content/228403/参考代码:const int N = 1e5; #include <iostre…… 题解列表 2024年03月27日 2 点赞 0 评论 713 浏览 评分:10.0