三行简便 编写题解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:用于一排数值注意事项:a=list(map(int,input().split()))参考代码:n=int(input())a=list(map(int,input().split()))p…… 题解列表 2024年04月06日 0 点赞 0 评论 362 浏览 评分:0.0
二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int x){ int i; if (x <= 1) return 0; for(i=2;i<…… 题解列表 2024年04月06日 0 点赞 0 评论 272 浏览 评分:0.0
八行简便 编写题解 2850: 输出亲朋字符串 摘要:解题思路:字符串与码的结合注意事项:下标大小参考代码:a=list(input())n=len(a)c=[]for i in range(n): b=chr(ord(a[i-1])+ord(a[…… 题解列表 2024年04月06日 0 点赞 0 评论 376 浏览 评分:0.0
自己想的,比较容易理解 摘要:#include <stdio.h>int main(){ int n; scanf("%d",&n); int m; m=n; int shu=1; int li…… 题解列表 2024年04月06日 0 点赞 0 评论 327 浏览 评分:0.0
2656: 蓝桥杯2022年第十三届省赛真题-刷题统计 摘要: #include using namespace std; int main() { long long a,b,n,sum=0; …… 题解列表 2024年04月06日 2 点赞 0 评论 326 浏览 评分:0.0
编写题解 1500: 蓝桥杯算法提高VIP-分数统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, arr[10][1000] = { 0 }, b, c1 = 0, c2 = 0, c3 =…… 题解列表 2024年04月06日 0 点赞 0 评论 272 浏览 评分:9.9
C++双指针优化 摘要:解题思路:纯暴力大概只能拿个40 发现可以采用双指针优化 利用一个p来维护左边界 枚举序列当它满足近似gcd那么所以子序列都满足 ans加上即可注意事项:参考代码:#include<bits/stdc…… 题解列表 2024年04月06日 0 点赞 0 评论 388 浏览 评分:0.0
编写题解 1781: 登陆验证问题(一) 摘要:#include <stdio.h> #include <string.h> int main() { char username[21]; // 存储账号的字符数组 ch…… 题解列表 2024年04月07日 1 点赞 0 评论 212 浏览 评分:0.0
1259: 送分题素数 摘要:解题思路:注意事项:参考代码:from math import * arr = [] for i in range(100, 201): for j in range(2, ceil(s…… 题解列表 2024年04月07日 0 点赞 0 评论 304 浏览 评分:0.0
求出1到50不符合的值易得,n=4*i+2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ long a,b,i; scanf("%d%d",&a,&b); int sum=b-a+1; for(i=a…… 题解列表 2024年04月07日 0 点赞 0 评论 287 浏览 评分:0.0