编写题解 2792: 三角形判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >>a>>b>>c; …… 题解列表 2024年02月05日 0 点赞 0 评论 379 浏览 评分:0.0
编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int c = 0; int a; cin>>a; …… 题解列表 2024年02月05日 0 点赞 0 评论 295 浏览 评分:0.0
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:编写题解 1039: [编程入门]宏定义之闰年判断#include<iostream> #define LEAP_YEAR(year) ((year % 4 == 0…… 题解列表 2024年02月05日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; int sum = …… 题解列表 2024年02月05日 0 点赞 0 评论 349 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,x1,x2,x3,x4; cin>>a…… 题解列表 2024年02月05日 0 点赞 0 评论 272 浏览 评分: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 评论 274 浏览 评分: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 评论 276 浏览 评分: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 评论 566 浏览 评分: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 评论 533 浏览 评分: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 评论 361 浏览 评分:0.0