编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split(" ")))b = int(input())b = b+30count = 0for i in range…… 题解列表 2023年02月21日 0 点赞 0 评论 214 浏览 评分:2.0
新手版,简单易懂 摘要:解题思路:循环赋值注意事项:转换类型参考代码: Scanner scanner = new Scanner(System.in); int shuru = scanner.…… 题解列表 2023年02月21日 0 点赞 2 评论 173 浏览 评分:9.9
最最最简单的一种方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]; int i,j; //int t; for(i=0;i<3;i…… 题解列表 2023年02月21日 0 点赞 0 评论 384 浏览 评分:9.9
不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[100],i,r; int max; int sum=0; scanf("%d",&n); …… 题解列表 2023年02月20日 0 点赞 0 评论 306 浏览 评分:2.7
最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i; int max; int min; int difference; sc…… 题解列表 2023年02月20日 0 点赞 0 评论 258 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-GCD 摘要:解题思路://考察gcd性质,根据更相减损术可以知道一个等式:gcd(a,b)=gcd(a,b-a) 当然这里的前提时a<=b;//所以gcd(a+k,b+k)=gcd(a+k,b-a) 这里的a…… 题解列表 2023年02月20日 0 点赞 0 评论 1717 浏览 评分:9.9
创建vector数组对n进行分配并搜索 摘要:解题思路:空间换时间,使用创建多个vector存储求完数位和的数,从1开始计算,由于同一数位和的数小的一定在前面,所以直接push_back尾部插入. 插入完成后再用循环对vector的…… 题解列表 2023年02月20日 0 点赞 0 评论 192 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:```cpp #include #include #include using namespace std; /* 题目描述 编写一函数,由实参传来一个字符串,统计此字符串中字母、数…… 题解列表 2023年02月20日 0 点赞 1 评论 170 浏览 评分:8.7
就是通过分支选择来写 摘要:解题思路:注意事项:“整数”还有一个长边和短边的顺序好像也要调整一下参考代码:def inchjudge1(n): lside=1189 #初始设置边长 rside=841 …… 题解列表 2023年02月20日 0 点赞 0 评论 403 浏览 评分:9.0
1006: [编程入门]三个数找最大值python题解 摘要:运用列表简易找出,还能举一反三print输出时用变量名直接表述参考代码:a=list(map(int,input().split()) print(max(a))…… 题解列表 2023年02月20日 0 点赞 0 评论 416 浏览 评分:8.0