编写题解 2792: 三角形判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >>a>>b>>c; …… 题解列表 2024年02月05日 0 点赞 0 评论 251 浏览 评分:0.0
编写题解 2790: 分段函数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;int main(){ float x,y; cin>>x; if(x>=0…… 题解列表 2024年02月05日 0 点赞 0 评论 221 浏览 评分:0.0
模拟计算器 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; char c; cin>>a>>…… 题解列表 2024年02月05日 0 点赞 0 评论 275 浏览 评分:0.0
一种减小复杂度的质因数分解法 摘要:解题思路:本题中主要思路就是遍历题目给出区间,分解其中每一个元素的质因式主要的部分为:1.判断质数的函数 2.生成升序质数序列(一般只需要从小到大判断元素并且加入列表就行了,不需要再专门排序)3.从题…… 题解列表 2024年02月04日 0 点赞 0 评论 239 浏览 评分:9.9
字符串判等(简介) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2860: 字符串判等 import java.util.Scanner; public class t_2860 {…… 题解列表 2024年02月04日 0 点赞 0 评论 188 浏览 评分:0.0
Sine之舞:简单的字符连接及找规律题 摘要:解题思路: 本题中可以使用递归或者循环的方法进行字符串连接输出对应结果,主要的解题步骤还是要找规律,字符拼接的时候只要别粗心少个符号啥的就行,这一题中首先看An,它本质上就是“sin(i”加上对应加减…… 题解列表 2024年02月04日 0 点赞 0 评论 307 浏览 评分:9.9
接龙数列动态规划的python写法 摘要:解题思路:极简 线性DP-Dotcpp编程社区dp[]数组长度设置为10,因为接龙数列的每一项均为数字,从1~9,0不需要考虑进去;dp[]数组的含义:以i结尾的接龙数列的最大长度;设a为接龙数列的第…… 题解列表 2024年02月04日 0 点赞 0 评论 620 浏览 评分:8.0
大整数乘法C++ 摘要://大整数乘法#include <bits/stdc++.h>using namespace std;int na[2005], nb[2005], nc[4010];string mul(strin…… 题解列表 2024年02月04日 0 点赞 0 评论 319 浏览 评分:0.0
最简洁的解 摘要:参考代码:n = int(input()) # 初始饮料数和瓶盖数 total_drinks = n caps = n # 不断循环,直到无法再换取新的饮料 while caps >…… 题解列表 2024年02月04日 0 点赞 0 评论 265 浏览 评分:9.9
过滤多余的空格(Java) 摘要:解题思路:注意事项:参考代码:public static void main(String args[]) { Scanner sc=new Scanner(System.in); Str…… 题解列表 2024年02月04日 0 点赞 0 评论 164 浏览 评分:0.0