题解列表
三个字符串的排序,使用选择排序
摘要:解题思路: 输入三个字符串,并存入一个数组中,对该数组元素进行选择排序。注意事项:无参考代码:#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))
{……
奖学金:结构体多关键字排序
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <algorithm>
using namespace std;
struct st{
int sn,……
Jam的计数法C++
摘要:解题思路: 如果字符串的第一个字母已经是最大可能的字母退出循环;否则从最后一个字母开始遍历, 如果当前字母已经是最大可能字母, 退出循环; 否则, 当前字母加 1, 该字母之后的每一个字母,依据当前……