题解列表
蓝桥杯算法训练VIP-判定字符位置 题解(c++风格,简单易懂)
摘要:解题思路:字符串内判断是否位元音字母,如是,便直接输出,结束循环,这样输出的一定是最前的元音字母,在循环后加个输出‘0’,以便没有元音字母。注意事项:无。参考代码:#include<bits/stdc……
信息学奥赛一本通T1181-整数奇偶排序-题解(各语言代码)
摘要:**python**
```python
print(*sorted(map(int,input().split()),key=lambda x:x*-~-((x&1)……
最大公约数以及最小公倍数的计算方法
摘要:解题思路:使用辗转相除法注意事项:还有其他的方法,这个仅供参考参考代码:#include <stdio.h>int Divisor(int x ,int y); /* 计算最小公倍数*/int Mul……
小南解题--回形取数
摘要:'''zgn94617:17 2022/5/15'''#输入n, m = map(int, input().split())#存储矩阵bfs = [li……
有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<iomanip>float seqSum(short n);int main……
**************************Hello World
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hello……
小南解题--字符删除
摘要:#有错,欢迎探讨a=input().strip()b=input().strip()c=a.split(b)print(''.join(c))……
用结构体表达时间并进行运用
摘要:解题思路:注意事项:2月注意常规的闰年判断参考代码:#include <stdio.h>struct Ymd{ unsigned int year; unsigned int month; unsig……