蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:注意事项:参考代码:n=input()match n: case 'A0': print(11……
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:注意事项:#include <stdio.h>#include <stdlib.h>int main(){ int n; &nb……
蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:注意事项:参考代码:s = input().strip()n = int(s[1])a = 1189b = 841for i in range(n): a = a//2 if a……
蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int ……
纸张尺寸,递归解决(python)
摘要:
lw函数矫正当前长宽
cal函数递归解决,An就是重复折叠n次,n=0时结束
```
def lw(l,w):
return max(l,w),min(l,w)
de……
C语言题解 纸张尺寸 模拟
摘要:解题思路:用for模拟一下就行已经有大佬提前分析这个题了。我只是用来记录一下参考代码:#include <stdio.h>
#include <string.h>
#include <math.h……
Java题解:暴力解法
摘要:解题思路:注意事项:参考代码:package com.test.eazy;import java.util.Scanner;public class eazy14 { public static……
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路: 在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个……