蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:参考代码:a=input()k=int(a[1])long=1189width=841temp=0i=0while(i!=k): long=long//2 if wid…… 题解列表 2023年04月06日 0 点赞 0 评论 694 浏览 评分:8.4
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:只用考虑输入的0~9这几个数,做循环就行注意事项:参考代码:name = input() num = int(name[1]) #只看A后面的数 l=1189 #长 w=8…… 题解列表 2023年04月03日 0 点赞 4 评论 715 浏览 评分:9.9
纸张尺寸——python 摘要:解题思路:注意事项:参考代码:n = input()a,b = 1189,841for i in range(int(n[1])): a,b = b,a//2 print(a)print(b)…… 题解列表 2023年04月02日 1 点赞 0 评论 158 浏览 评分:0.0
纸张尺寸(java题解) 摘要: package lqb; import java.util.Scanner; public class t2680 { pu…… 题解列表 2023年04月02日 0 点赞 0 评论 471 浏览 评分:9.9
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:看注释注意事项:看注释参考代码:a = ["A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9"] n =&n 题解列表 2023年03月18日 0 点赞 0 评论 672 浏览 评分:9.0
#C++2680——蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:由题意可得出:从A1开始,满足规律:length[i]=wide[i-1]wide[i]=length[i-1]/2;按照规律构造答案即可;******按规律办事******参考代码:#in…… 题解列表 2023年03月17日 1 点赞 0 评论 355 浏览 评分:9.5
Switch打表-直接暴力 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import static java.lang.System.exit;public class Main { p…… 题解列表 2023年03月14日 0 点赞 1 评论 140 浏览 评分:0.0
纸张尺寸--超级精简 摘要:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ //超级精简的一个方法 char a; int b; …… 题解列表 2023年03月12日 0 点赞 0 评论 398 浏览 评分:9.9
解决纸张尺寸问题 摘要:解题思路:使用列表存储两个长短边的信息,根据用户输入的尺寸,判断长短边(要判断输出的长短边信息,要先输出长边)参考代码:long=[] short=[] s=int(input().strip()…… 题解列表 2023年03月10日 0 点赞 0 评论 695 浏览 评分:9.5
二维列表+Python特性 摘要:解题思路:获取下标,找到对应的已经存好地数据注意事项:A0——A9是10个数,向下取整可直接用int()参考代码:s=int(input()[1]) m,n=1189,841 result=[] …… 题解列表 2023年03月03日 0 点赞 0 评论 443 浏览 评分:9.0