发现输出不了的,样例不一致的过来 摘要:#include <stdio.h> int main() { int N,K,year,i; scanf("%d %d",&N,&K); double num=N,sum=200; …… 题解列表 2023年07月22日 0 点赞 5 评论 790 浏览 评分:9.9
完全二叉树的权值 c++超简洁 摘要:解题思路:因为深度i是深度i-1的2倍,所以定义一个s来表示每层深度的结点数注意事项:需要了解二叉树的基本概念参考代码:#include<bits/stdc++.h>using namespace s…… 题解列表 2023年07月22日 0 点赞 0 评论 389 浏览 评分:9.9
第几项33333333 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,s = 0; cin>>a; …… 题解列表 2023年07月22日 0 点赞 0 评论 380 浏览 评分:9.9
Sn的公式求和 摘要:参考代码:#include#include int main() { int n,sum=0; scanf("%d",&n); for(int i=0;i<n;i++){ …… 题解列表 2023年07月22日 0 点赞 0 评论 298 浏览 评分:9.9
2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){…… 题解列表 2023年07月22日 0 点赞 0 评论 405 浏览 评分:9.9
2880: 计算鞍点 摘要:解题思路:int main() { for(int i=1;i<=5;i++)//双重循环1 { for(int j=1;j<=5;j++)//双重循环2 …… 题解列表 2023年07月22日 0 点赞 0 评论 578 浏览 评分:9.9
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon…… 题解列表 2023年07月22日 0 点赞 0 评论 373 浏览 评分:9.9
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;int pdsushu(int x){…… 题解列表 2023年07月22日 0 点赞 0 评论 362 浏览 评分:9.9
用 for(auto & c:s)遍历字符串并赋值 摘要:解题思路: 字符串遍历注意事项: getline取空格参考代码:#include<iostream>#include<cstring>using na…… 题解列表 2023年07月23日 0 点赞 0 评论 330 浏览 评分:9.9
1045 暴力解 摘要:#include<iostream>using namespace std;int s[10];int a,b;int da=0,xiao=10050;int main(void){ for(i…… 题解列表 2023年07月23日 0 点赞 0 评论 365 浏览 评分:9.9