整齐美观,易懂有注释(两种方法)!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; int a=0,b=0,c=0,d=0; scanf("%d",&m);…… 题解列表 2023年10月22日 0 点赞 0 评论 544 浏览 评分:9.9
1126-字符串正反连接 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2023年10月22日 0 点赞 0 评论 318 浏览 评分:9.9
基因相关性(两个数组对比) 摘要:解题思路:依靠循环和数组对比注意事项:注意要用%s 而不是%c 来输入字符串参考代码:#include<stdio.h>#include<string.h>int main(void){ flo…… 题解列表 2023年10月22日 0 点赞 0 评论 599 浏览 评分:9.9
钟神赛车Python(菜鸟第一次写,查了好几个函数,有点笨) 摘要:解题思路:用到了两个函数1.sys模块里的stdin,解决了多行输入的问题2.itertools里的permutations函数,用于生成钟神车速的所有排列组合再用for循环对钟神和某君的车速进行对比…… 题解列表 2023年10月22日 0 点赞 1 评论 254 浏览 评分:9.9
题解 2809: 菲波那契数列(C++数组法) 摘要:解题思路: 使用数组来计算每一项的值,可以避免重复无用的计算注意事项: 数组 题解列表 2023年10月22日 0 点赞 0 评论 530 浏览 评分:9.9
末两位数Java 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年10月22日 0 点赞 0 评论 293 浏览 评分:9.9
简单的数学题 摘要:解题思路:题目可以理解为n天,每天给n块,换算成公式就是x=x+n*n,所以我们可以按公式算出来,然后增加一个判断,是否为1+2+3+4……+n的值,不是就减去。注意事项:参考代码:#include<…… 题解列表 2023年10月23日 0 点赞 0 评论 416 浏览 评分:9.9
题解(c++):1018: [编程入门]有规律的数列求和 摘要:解题思路:首先观察数列,然后找后一个分子分母与前一个分子分母之间的规律注意事项:保留两位小数参考代码:#include<iostream>#include<iomanip>using namespac…… 题解列表 2023年10月23日 0 点赞 0 评论 299 浏览 评分:9.9
编写题解 1670: 拆分位数(c++) 摘要:解题思路:利用数组来进行倒序输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; int n; cin >> …… 题解列表 2023年10月23日 0 点赞 0 评论 346 浏览 评分:9.9
懂得都懂,不懂的我也没办法 摘要:from collections import defaultdict def num_dc(A): res = 0 n = N dp = [defaultdict(i…… 题解列表 2023年10月23日 0 点赞 0 评论 336 浏览 评分:9.9