题解列表
用 for(auto & c:s)遍历字符串并赋值
摘要:解题思路: 字符串遍历注意事项: getline取空格参考代码:#include<iostream>#include<cstring>using na……
2997: 梯形面积
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float s = (15+2……
2955: 判决素数个数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;int pdsushu(int x){……
1852: 求1+2+3+...+n的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon……
1852: 求1+2+3+...+n的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){ long long ……
2880: 计算鞍点
摘要:解题思路:int main()
{
for(int i=1;i<=5;i++)//双重循环1
{
for(int j=1;j<=5;j++)//双重循环2
……
2880: 计算鞍点
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){……
2880: 计算鞍点
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ fo……
[编程入门]第一个HelloWorld程序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hell……