题解列表

筛选

最大公约数与最小公倍数

摘要:解题思路:注意事项:参考代码:public class Main {    public static void main(String[] args) {        Scanner scanne……

正则表达式判断密码

摘要: import java.util.Scanner; public class Dome21 {    public static void main(String[] args) {  ……

逐个检查字符串的解法

摘要:解题思路:使用bool函数判定字符串中的数字和运算符号,输入字符串后从第0个元素开始检查,遇到数字时完成int转化(char转int固定格式:chardigit-'0'),遇到运算符号……

题目 1213: 幸运儿题解

摘要:参考代码:#include<iostream> using namespace std; int n; bool flag[100]; bool f(){     int num=0;  ……

题目 1216: 成绩转换题解

摘要:参考代码:#include<iostream> using namespace std; int main(){     int score;     while(cin>>score){ ……

2917: 奇数单增序列

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

试除法分解质因数

摘要:解题思路:试除法分解质因数,思路来源y神注意事项:主要是格式问题,用一个list来保存所有的质因数,然后最后用join输出参考代码:def divide(x: int):    if x < 2:  ……

蓝桥杯2014年第五届真题-分糖果

解题思路:注意事项:参考代码:head=int(input())n=map(int,input().strip().split())n=list(n)num=0jurge=len(n)defshare(list_test):foriinrange(len(list_test)):list_test[i

2857: 加密的病历单

```pythons=input()news=str()forcins:ifc.isupper():news+=c.lower()else:news+=c.upper()news=news[::-1]d={'x':'a','y':'b','z':'c',