接龙数列动态规划的python写法 摘要:解题思路:极简 线性DP-Dotcpp编程社区dp[]数组长度设置为10,因为接龙数列的每一项均为数字,从1~9,0不需要考虑进去;dp[]数组的含义:以i结尾的接龙数列的最大长度;设a为接龙数列的第…… 题解列表 2024年02月04日 0 点赞 0 评论 841 浏览 评分:8.0
Sine之舞:简单的字符连接及找规律题 摘要:解题思路: 本题中可以使用递归或者循环的方法进行字符串连接输出对应结果,主要的解题步骤还是要找规律,字符拼接的时候只要别粗心少个符号啥的就行,这一题中首先看An,它本质上就是“sin(i”加上对应加减…… 题解列表 2024年02月04日 0 点赞 0 评论 511 浏览 评分:9.9
字符串判等(简介) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2860: 字符串判等 import java.util.Scanner; public class t_2860 { …… 题解列表 2024年02月04日 0 点赞 0 评论 403 浏览 评分:0.0
一种减小复杂度的质因数分解法 摘要:解题思路:本题中主要思路就是遍历题目给出区间,分解其中每一个元素的质因式主要的部分为:1.判断质数的函数 2.生成升序质数序列(一般只需要从小到大判断元素并且加入列表就行了,不需要再专门排序)3.从题…… 题解列表 2024年02月04日 0 点赞 0 评论 471 浏览 评分:9.9
模拟计算器 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; char c; cin>>a>>…… 题解列表 2024年02月05日 0 点赞 0 评论 499 浏览 评分:0.0
编写题解 2790: 分段函数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;int main(){ float x,y; cin>>x; if(x>=0…… 题解列表 2024年02月05日 0 点赞 0 评论 415 浏览 评分:0.0
编写题解 2792: 三角形判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >>a>>b>>c; …… 题解列表 2024年02月05日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int c = 0; int a; cin>>a; …… 题解列表 2024年02月05日 0 点赞 0 评论 338 浏览 评分:0.0
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:编写题解 1039: [编程入门]宏定义之闰年判断#include<iostream> #define LEAP_YEAR(year) ((year % 4 == 0…… 题解列表 2024年02月05日 0 点赞 0 评论 442 浏览 评分:0.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月05日 0 点赞 0 评论 366 浏览 评分:9.9