用列表展示 解题思路:注意事项:参考代码:m=input()A={"A0":[1189,841],"A1":[841,594],"A2":[594,420],"A3":[420,297],"A4":[297,210],"A5":[210,148],"A6":[148, 题解列表 2025年06月10日 1 点赞 0 评论 433 浏览 评分:0.0
简单递归调用 摘要:str = input()def func(l,d,t): if t==0: if l>d: &nbs…… 题解列表 2025年04月11日 0 点赞 0 评论 447 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:参考代码:n=input()match n: case 'A0': print(11…… 题解列表 2025年04月06日 5 点赞 0 评论 694 浏览 评分:0.0
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:#include <stdio.h>#include <stdlib.h>int main(){ int n; &nb…… 题解列表 2025年03月04日 1 点赞 0 评论 693 浏览 评分:10.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:参考代码:s = input().strip()n = int(s[1])a = 1189b = 841for i in range(n): a = a//2 if a…… 题解列表 2024年08月12日 4 点赞 0 评论 889 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int …… 题解列表 2024年05月21日 0 点赞 0 评论 928 浏览 评分:9.9
纸张尺寸,递归解决(python) lw函数矫正当前长宽cal函数递归解决,An就是重复折叠n次,n=0时结束```deflw(l,w):returnmax(l,w),min(l,w)defcal(n,l=1189,w=841):ll,ww=lw(l,w)ifn==0:returnll, 题解列表 2024年04月12日 2 点赞 0 评论 796 浏览 评分:9.9
C语言题解 纸张尺寸 模拟 摘要:解题思路:用for模拟一下就行已经有大佬提前分析这个题了。我只是用来记录一下参考代码:#include <stdio.h> #include <string.h> #include <math.h…… 题解列表 2024年04月10日 1 点赞 0 评论 681 浏览 评分:0.0
Java题解:暴力解法 摘要:解题思路:注意事项:参考代码:package com.test.eazy;import java.util.Scanner;public class eazy14 { public static…… 题解列表 2024年03月29日 0 点赞 0 评论 617 浏览 评分:0.0
观察最长边最短边 解题思路:先顺题意写几个例子,观察一下,发现最长边除以二变成下一个纸张的最短边,最短边变成下一张纸张的最长边注意事项:用Strings=sc.next();输入纸张代号,要知道是第几张要用字符串charAt();但是需要注意用charAt()获取的不是数字, 题解列表 2024年03月15日 0 点赞 0 评论 737 浏览 评分:0.0