题解列表

筛选

字符串分类统计C++

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get……

(c语言代码)

摘要:解释一下,%e是科学计数法的形式输出,%g用来输出浮点数,系统会自动选 f 格式或 e 格式输出,但选择其中长度较短的格式,不输出无意义的0 ```c #include int main() ……

字符串分类统计

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

Python的辗转相除

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

辗转相除最终归纳!

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