题目 1168: 简单计算(先数学计算,递推得结论,然后再做题) 摘要:解题思路:注意事项:参考代码:1.列出基本递推关系式子:a[1] = (a[0] + a[2]) /2- c[1]a[2] = (a[1] + a[3]) /2- c[2]a[3] = (a[2] +…… 题解列表 2024年03月13日 0 点赞 0 评论 312 浏览 评分:9.9
1169: 绝对值排序(改编一下sort函数,超方便) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b);int ma…… 题解列表 2024年03月13日 0 点赞 0 评论 193 浏览 评分:9.9
python 2810: 鸡尾酒疗法 摘要:解题思路:有效率 = 有效的病例数 / 总病例数参考代码:n = int(input()) for i in range(n): arr = list(map(int, input().s…… 题解列表 2024年03月13日 0 点赞 0 评论 284 浏览 评分:9.9
python 2811: 救援 摘要:参考代码:import math n = int(input()) x1, y1 = 0, 0 pace = 50 time = 0 for i in range(n): xn, …… 题解列表 2024年03月13日 0 点赞 0 评论 525 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { static int n, arr[]; public static void…… 题解列表 2024年03月13日 0 点赞 0 评论 263 浏览 评分:9.9
疯狂裁缝简单解 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int max=0;//用来记录每一次的最大值 Scanner scanner=…… 题解列表 2024年03月13日 0 点赞 0 评论 187 浏览 评分:9.9
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int x=2; for(x=2;x<1000;x++) { int a=0,b=0,c=0; a=x/1…… 题解列表 2024年03月13日 0 点赞 0 评论 236 浏览 评分:9.9
最简单的解 摘要:参考代码:matrix_B = [] for _ in range(5): row = list(map(int, input().split())) matrix_B.appe…… 题解列表 2024年03月13日 1 点赞 0 评论 420 浏览 评分:9.9
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hjh(int i){ int count=2; for(int f=2;f<i;f++) { if(i%f!=0) coun…… 题解列表 2024年03月13日 0 点赞 0 评论 153 浏览 评分:9.9
编写题解 2074: [STL训练]A+B 摘要:解题思路:将字符串转化为整数就好了。注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>long long as(char a[]…… 题解列表 2024年03月13日 0 点赞 0 评论 294 浏览 评分:9.9