题解列表
最简单的组合数问题(递推法)
摘要:#include<bits/stdc++.h>
using namespace std;
const int N=2010;
int c[N][N];
void init()
{
for……
自定义函数之整数处理,解决对一半的问题
摘要:解题思路: 定义一个含有10个元素的数组,找出其中最大值与最小值的编号,分别记为min,max;按要求进行交换,同时考虑特殊情况的处理。注意事项: 如何解决部分测试结果不正确的问题?特殊情况1:当最大……
三个字符串的排序,使用选择排序
摘要:解题思路: 输入三个字符串,并存入一个数组中,对该数组元素进行选择排序。注意事项:无参考代码:#include<iostream>
using namespace std;
#include<st……
1108: 守望者的逃离 贪心
摘要:解题思路:贪心注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int m,s,……
这个题细节很多,wa了很多次
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
string s;
cin>>n>……
原来不难,就只有第一个单词特殊啊
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
while(getline(cin,s))
{……