2877:我这个方法更简单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,x,y; scanf("%d%d%d",&n,&x,&y); int i,j;…… 题解列表 2024年12月26日 6 点赞 0 评论 298 浏览 评分:10.0
简单易于理解的素数问题——Python 摘要:参考代码:a=int(input()) s=0 for i in range(1,a): if a%i==0: s=s+1 if s>=2: print(&…… 题解列表 2024年12月26日 4 点赞 0 评论 433 浏览 评分:10.0
基因相关性 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String []args)…… 题解列表 2024年12月27日 1 点赞 0 评论 399 浏览 评分:10.0
最好理解的矩阵转化问题——Python 摘要:参考代码:a,b,c=map(int,input().split()) d,e,f=map(int,input().split()) g,h,i=map(int,input().split()) …… 题解列表 2024年12月27日 1 点赞 0 评论 368 浏览 评分:10.0
编写题解 1050: [编程入门]结构体之成绩记录(注释清晰 简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct student{ …… 题解列表 2024年12月27日 5 点赞 0 评论 632 浏览 评分:10.0
编写题解 1051: [编程入门]结构体之成绩统计2(注释清晰 简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { …… 题解列表 2024年12月27日 3 点赞 0 评论 849 浏览 评分:10.0
1575递归倒置字符c++递归法简单明了解决方案 摘要:解题思路:此处使用swap方法进行字符交换,可以使代码更简洁更简单,只需要在定义的一个方法中传输该字符与字符数组左右的边界。当左边界大于等一有边界就可以返回了,这样也可以使得输入n=1时也能返回。再使…… 题解列表 2024年12月28日 0 点赞 0 评论 425 浏览 评分:10.0
2163二分法查找最接近的元素 摘要:解题思路:注意事项:在比较的时候需要注意取绝对值(abs函数)比较,不然会出错。参考代码:#include <bits/stdc++.h>using namespace std;int findClo…… 题解列表 2024年12月28日 0 点赞 0 评论 376 浏览 评分:10.0
用冒泡排序的方法解决 摘要:解题思路: 通过交换相邻元素的方式将元素依次向前移动一位,实现将数组的后 m 个元素循环前移到数组前面。注意事项: 注意输入的 m 值不能超过数组的长度,否则可能会出现越界错误。代码中使用了变长数组(…… 题解列表 2024年12月28日 2 点赞 0 评论 337 浏览 评分:10.0
有点思维难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n, i; scanf("%d", &n); int a[…… 题解列表 2024年12月28日 1 点赞 1 评论 229 浏览 评分:10.0