python方法解决 摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y': s = 5a = int(l[0])if a …… 题解列表 2024年07月28日 0 点赞 0 评论 649 浏览 评分:0.0
无敌妈妈存钱计划!!!!!!!!!!!!!!!! 摘要:解题思路:数组存储接收变量注意事项:参考代码:/* residue[0]=300-budget; residue[1]= 循环//residue[0]+300-budget[1];// …… 题解列表 2024年07月28日 0 点赞 0 评论 413 浏览 评分:9.9
含k个3的数的解 摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0: m=str(m) count=m.count('3') …… 题解列表 2024年07月28日 0 点赞 0 评论 260 浏览 评分:0.0
【欧拉筛法】哥德巴赫曾猜测 摘要:```cpp #include using namespace std; const int N = 32770; int prime[N];//存储质数 int num[N];//标注是…… 题解列表 2024年07月27日 0 点赞 0 评论 263 浏览 评分:0.0
二维数组的转置及C代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3],count=0; for(i=0;i<3;i++) { for…… 题解列表 2024年07月27日 1 点赞 0 评论 377 浏览 评分:9.9
巧用动态规划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,index=0,i,l[1000]; l[0]=0; char ch='0'; fo…… 题解列表 2024年07月27日 2 点赞 0 评论 656 浏览 评分:10.0
好用的STL双端队列(1) 摘要:#include<bits/stdc++.h> using namespace std; deque<int>q; int main() { char c[1000]; c…… 题解列表 2024年07月26日 0 点赞 0 评论 168 浏览 评分:0.0
好用的STL双端队列 摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c…… 题解列表 2024年07月26日 0 点赞 0 评论 234 浏览 评分:0.0
等差数列尼科彻斯定理 摘要:参考代码:/** * 尼科彻斯定理:任何一个整数m的立方都可以写成m个连续奇数之和 * 示例:13*13*13=2197=157+159+161+163+165+167+169+171+173…… 题解列表 2024年07月26日 0 点赞 0 评论 280 浏览 评分:0.0
C语言求偶数和 摘要:解题思路:循环和条件判断语句的使用注意事项:写了两种,一种就是不需要输入整数个数n(输入以回车结束),另一种是需要输入整数个数n(就是本题)参考代码:第一种:#include<stdio.h>int …… 题解列表 2024年07月26日 3 点赞 0 评论 739 浏览 评分:10.0