题解列表
奖学金:结构体多关键字排序
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <algorithm>
using namespace std;
struct st{
int sn,……
Python的辗转相除
摘要:def gcd(a,b):
while b:
a,b=b,a%b
return a
a=int(input())
b=int(input())
print(……
原来不难,就只有第一个单词特殊啊
摘要:#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的倍……