1060:同因查找(python) 摘要:解题思路:注意事项:参考代码:for i in range(10,1001): if(i%2==0 and i%3==0 and i%7==0): print(i) …… 题解列表 2023年12月09日 0 点赞 0 评论 207 浏览 评分:0.0
点和正方形的关系--java语言 摘要:解题思路:①导入②判断关系③输入④输出注意事项:①导入②关系判断参考代码:import java.util.Scanner; public class Main { public stati…… 题解列表 2023年12月10日 0 点赞 0 评论 233 浏览 评分:0.0
周末舞会(python) 摘要:解题思路:注意事项:参考代码:def dance_partner(men_count, women_count, dance_count): men_queue = list(range(1, …… 题解列表 2023年12月10日 0 点赞 0 评论 299 浏览 评分:0.0
优优优质题解!!!!! 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int zimu =0; int shuzi =0; int kong…… 题解列表 2023年12月10日 0 点赞 0 评论 277 浏览 评分:0.0
宏简单作法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define max a>b?(a>c?a:c):(b>c?b:c)int main(){int a,b,c;scanf("%d%d%…… 题解列表 2023年12月10日 0 点赞 0 评论 198 浏览 评分:0.0
校门外的树(c++) 摘要:解题思路:树是连续的可以用数组来存储,根据区间来遍历,更改数组状态。注意事项:用来存储树的数组需要比极限略微大一点的空间,否则会有段错误。参考代码:#include<bits/stdc++.h> #…… 题解列表 2023年12月10日 0 点赞 0 评论 215 浏览 评分:0.0
[递归]母牛的故事(c++) 摘要:解题思路:题目告诉递归,那就找规律:1,2,3,4,6,9明显看出f(n)=f(n-1)+f(n-3);(n>4)注意事项:找对规律对递归很重要。参考代码:#include<bits/stdc++.h…… 题解列表 2023年12月10日 0 点赞 0 评论 239 浏览 评分:0.0
分数求和(python) 摘要:解题思路:注意事项:参考代码:'''Python标准库中的fractions模块是用于处理有理数(Rational Numbers)的一个强大的工具。有理数是可以表示为两个整数…… 题解列表 2023年12月10日 0 点赞 0 评论 325 浏览 评分:0.0
数的计数(python) 摘要:解题思路:注意事项:参考代码:def count_numbers(n): # 创建一个长度为 n+1 的数组,用于存储中间结果 dp = [0] * (n + 1) # 初始化基本情…… 题解列表 2023年12月10日 0 点赞 0 评论 406 浏览 评分:0.0
题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a!=0) …… 题解列表 2023年12月10日 0 点赞 0 评论 193 浏览 评分:0.0