题解列表
原来不难,就只有第一个单词特殊啊
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
while(getline(cin,s))
{……
这个题细节很多,wa了很多次
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
string s;
cin>>n>……
1108: 守望者的逃离 贪心
摘要:解题思路:贪心注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int m,s,……
1159: 偶数求和的一种解决方法
摘要:解题思路:题目对数列的定义是长度为n,公差为2的一个等差数列,那么可以这样理解数列中的每个元素值都是k=2*i(i=1,2,3.....n),这样每次求和只需要变量sum加上2*i即可。当i等于m的倍……
使用qsort函数排序,直接找到最大值
摘要:不懂qsort函数用法的看这里[C语言qsort函数的使用详解](https://blog.csdn.net/weixin_47648037/article/details/126691309?ops……
最简单的组合数问题(递推法)
摘要:#include<bits/stdc++.h>
using namespace std;
const int N=2010;
int c[N][N];
void init()
{
for……