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