题解列表

筛选

1108: 守望者的逃离 贪心

摘要:解题思路:贪心注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m,s,……

最暴力的写法

摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<=n;i……

辗转相除最终归纳!

摘要:1.c++写#include<bits/stdc++.h> using namespace std; int _gcd(int a,int b) {     while(b!=0)//可以简写……

Python的辗转相除

摘要:def gcd(a,b):     while b:         a,b=b,a%b     return a a=int(input()) b=int(input()) print(……

字符串分类统计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>   #include <string.h> int main() {     int letters = 0, digit……