2133庆功会-完全背包问题(C++) 摘要:解题思路:和上一题几乎一样,稍微改一改就好了参考代码:#include<iostream> int main(){ using namespace std; int m,n; cin>>n>…… 题解列表 2022年08月01日 0 点赞 0 评论 494 浏览 评分:6.8
整型数据类型存储空间大小 摘要:解题思路:用sizeof解题注意事项:参考代码:#include<stdio.h>int main(){ int a; short b; printf("%d %d\n",sizeo…… 题解列表 2022年10月17日 0 点赞 0 评论 969 浏览 评分:6.8
2749: Hello, World! 摘要:```cpp #include using namespace std; int main() { cout…… 题解列表 2022年11月19日 0 点赞 0 评论 747 浏览 评分:6.8
优质题解 后缀表达式的值 摘要:解题思路: 1.从左到右扫描后缀表达式的每一个字符。 2.如果读入的字符是数字,将其转化为整数,并将其压入栈中。 3.如果读入的字符是运算符,则从栈中取出两个运算数,进行计算,并将结果压入栈中。…… 题解列表 2022年12月20日 1 点赞 0 评论 835 浏览 评分:6.8
暴力解法,最大限度减低难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; scanf("%c",&c); printf(" %c",c); printf…… 题解列表 2023年02月27日 0 点赞 0 评论 795 浏览 评分:6.8
质因数分组 摘要:### 思路 考虑到 $a_i$ 很小,所以首先预处理出1 ~ 1000000 所有素数,然后对于每个素数枚举其倍数,算出每个数的质因子,这里时间和空间复杂度大概是 O(loglogn) 然后…… 题解列表 2023年04月15日 0 点赞 0 评论 1250 浏览 评分:6.8
编写题解 2912: 最长平台 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int findLongestPlateau(int arr[], int…… 题解列表 2023年05月20日 0 点赞 0 评论 528 浏览 评分:6.8
题解 2821: 开关灯(先五星再复制) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int a[10000] ; int main() { int n,m ; …… 题解列表 2023年07月18日 0 点赞 3 评论 351 浏览 评分:6.8
Python才是最牛的,其他的就是Shit! 摘要:import math print(math.factorial(int(input())))Python 是一种易学易用且功能强大的高级编程语言,具有许多独特的优点,使其成为开发者和数据科学家们的…… 题解列表 2023年10月15日 1 点赞 0 评论 439 浏览 评分:6.8
python语言编写(a+b)*c 摘要:解题思路:掌握输入和输出的基本概念注意事项:注意在题中对括号的添加参考代码:a,b,c = map(int,input().split())print((a + b)*c)…… 题解列表 2023年12月04日 0 点赞 1 评论 1241 浏览 评分:6.8