题解列表
信息学奥赛一本通T1626-Hankson 的趣味题
摘要: #include using namespace std; int gcd(int a,int b){ return b?gcd(b,a%b):a;} ……
通过率100%但是测试用例有问题
摘要:解题思路:注意全为特殊字符时的处理注意事项:蓝桥杯官网上100%通过率,这个网站上的测试用例都是自己编的,出错难免参考代码:import java.util.Scanner;public class ……
字符串合并-strcat
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){ chars[2……
SARS病毒C++非常简单
摘要:**直接上到码嗨嗨嗨**```cpp#include #include using namespace std;const long long MOD = 1000000007……
很容易理解的一种做法
摘要:解题思路:注意事项:注意“==”和“=”参考代码:a,b = map(int,input().split())if a >= 60: a = 1else: ……
题解 1434: 蓝桥杯历届试题-回文数字(最简单易懂)
摘要:解题思路:将数字转换为字符串,顺序和逆序遍历字符串的每一位判断是否相等,若每一位都相等则为回文数。并使用found标记有没有找到满足条件的数字参考代码:x=int(input(……
奇数个数-简简单单,一个while循环搞定
摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a=0; scanf("%d",……