以b数组当中间值,二分解决 摘要:解题思路:注意事项:参考代码:n=int(input())a=[0]+list(map(int,input().split()))b=[0]+list(map(int,input().split())…… 题解列表 2023年04月03日 0 点赞 0 评论 290 浏览 评分:0.0
寻找三位数 摘要:解题思路:注意事项:参考代码:for i in range(100,334): a = 2*i b = 3*i if len(set(str(a)+str(b)+str(i))) =…… 题解列表 2023年04月03日 0 点赞 0 评论 345 浏览 评分:0.0
逆序数——python 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))s = 0while len(L)>1: a = L[0] …… 题解列表 2023年04月03日 0 点赞 0 评论 292 浏览 评分:0.0
利用列表内置函数解决 摘要:解题思路:利用list函数count注意事项:参考代码:times = int(input())s = []for i in range(times): s += [j for j in map…… 题解列表 2023年04月03日 0 点赞 0 评论 297 浏览 评分:0.0
题解 1095: The 3n + 1 problem 摘要:解题思路:注意事项:还得先比较输入的两个数的大小!!!参考代码#include<stdio.h> int main() { int a,b,m,n,j,temp; int su…… 题解列表 2023年04月03日 0 点赞 0 评论 257 浏览 评分:0.0
简单思路,附有注释,通俗易懂 摘要:```java //package 蓝桥杯2022年第十三届决赛真题; import java.util.Scanner; public class Main { private s…… 题解列表 2023年04月03日 0 点赞 0 评论 560 浏览 评分:0.0
nxn矩阵的两对角线上的元素之和 摘要:解题思路:对于nxn级矩阵求对角线的和,实际是选取主对角线及下标和为n-1的数组和同时减去中心数组的值注意事项:参考代码:#include<iostream> using namespace std…… 题解列表 2023年04月03日 0 点赞 0 评论 217 浏览 评分:0.0
動態內存申請 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>//malloc函數的頭文件void mycpy(const char *sou,char *goa…… 题解列表 2023年04月03日 0 点赞 0 评论 277 浏览 评分:0.0
datetime判断日期合理性即可 摘要:解题思路:注意事项:参考代码:from datetime import datetimedef isValidTime(y,m,d): try: t=datetime(y,m,d)…… 题解列表 2023年04月03日 0 点赞 0 评论 354 浏览 评分:0.0
纯签到题,str.count直接秒了 摘要:解题思路:注意事项:参考代码:n=int(input())cnt=0for i in range(1,n+1): t=str(i) if t.count('2')>0 or…… 题解列表 2023年04月03日 0 点赞 0 评论 327 浏览 评分:0.0