编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,x1,x2,x3,x4; cin>>a…… 题解列表 2024年02月05日 0 点赞 0 评论 124 浏览 评分:0.0
写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,sum0=0,sum1=0,sum2=0; scanf("%d",&n); …… 题解列表 2024年02月06日 0 点赞 0 评论 110 浏览 评分:0.0
编写题解 2800: 多边形内角和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,sum=0,C; scanf("%d",&n); int a[n-2]; …… 题解列表 2024年02月06日 0 点赞 0 评论 107 浏览 评分:0.0
题1006:三个数找最大值 摘要:解题思路:同时满足a>b和a>c用&&注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(…… 题解列表 2024年02月06日 0 点赞 0 评论 295 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,i,x=0; scanf("%d %d",&n,&a); int arr[n]…… 题解列表 2024年02月06日 0 点赞 0 评论 373 浏览 评分:0.0
双指针,从输入的角度出发,sort刷一遍,在d时间段内找到获赞数符合条件的id,双指针来处理其中重复的操作,使得每次只会++,比多重循环减少了大量时间,由哦(n2)减少到接近o(n) 摘要: ``` #include #define int long long #define x first #define y second using namespace std; …… 题解列表 2024年02月06日 0 点赞 0 评论 180 浏览 评分:0.0
1115: DNA(JAVA) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 1115: DNA import java.util.Scanner; public class t_1115 { …… 题解列表 2024年02月06日 0 点赞 0 评论 163 浏览 评分:0.0
编写题解 2366: 信息学奥赛一本通T1456-图书管理 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2366: 信息学奥赛一本通T1456-图书管理 import java.util.Scanner; public cl…… 题解列表 2024年02月06日 0 点赞 0 评论 167 浏览 评分:0.0
1159:偶数求和 C语言代码 摘要:解题思路:注意事项:在m可被n整除时,也要注意输出换行符号!!参考代码:#include<stdio.h>int main(){ int n,m,i,j,x,y,xb,yb; while(…… 题解列表 2024年02月06日 0 点赞 0 评论 122 浏览 评分:0.0
统计数字字符个数java 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2846: 统计数字字符个数 import java.util.Scanner; public class t_2846…… 题解列表 2024年02月06日 0 点赞 0 评论 245 浏览 评分:0.0