题解列表

筛选

1332: 津津的储蓄计划(python)

摘要:解题思路:注意事项:参考代码:m = 0 x = 0 month = 1 isTrue = True while True:     try:         n = int(input(……

scanf和gets的混合使用

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[1001];    int n;    scanf("%d",&n);//scanf结束回车……

编写题解 1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split(" ")))b = int(input())b  = b+30count = 0for i in range……

新手版,简单易懂

摘要:解题思路:循环赋值注意事项:转换类型参考代码:        Scanner scanner = new Scanner(System.in);        int shuru = scanner.……

最最最简单的一种方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[3][3];    int i,j;    //int t;    for(i=0;i<3;i……

最大值和最小值的差

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i; int max; int min; int difference; sc……

蓝桥杯2022年第十三届省赛真题-GCD

摘要:解题思路://考察gcd性质,根据更相减损术可以知道一个等式:gcd(a,b)=gcd(a,b-a)  当然这里的前提时a<=b;//所以gcd(a+k,b+k)=gcd(a+k,b-a)  这里的a……

创建vector数组对n进行分配并搜索

摘要:解题思路:空间换时间,使用创建多个vector存储求完数位和的数,从1开始计算,由于同一数位和的数小的一定在前面,所以直接push_back尾部插入.        插入完成后再用循环对vector的……