编写题解 2792: 三角形判断 摘要:解题思路:两个较短的边之和大于最长的那条边注意事项:参考代码:a=list(map(int,input().split()))a.sort()if a[0]+a[1]>a[2]: print(&…… 题解列表 2024年02月27日 0 点赞 0 评论 297 浏览 评分:10.0
用C语言解决分苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=0; scanf("%d",&n); for(int i=1;i…… 题解列表 2024年02月27日 0 点赞 0 评论 211 浏览 评分:0.0
用C语言解决余数相同问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int f…… 题解列表 2024年02月27日 0 点赞 0 评论 329 浏览 评分:9.9
An Easy Problem,非暴力贪心python 摘要:解题思路:用bin()转变为2进制,分两种情况111000和1100111000110,前者增加一位1,后者从后数,遇到第一个01,变为10,并将遇到的1变道最后注意事项:参考代码:def f(n):…… 题解列表 2024年02月27日 0 点赞 0 评论 228 浏览 评分:0.0
C语言判断闰年 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int year,flag=0; scanf("%d",&year); if(year%…… 题解列表 2024年02月27日 0 点赞 0 评论 250 浏览 评分:0.0
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin>…… 题解列表 2024年02月27日 0 点赞 0 评论 218 浏览 评分:0.0
2775: 等差数列末项计算 摘要:解题思路: 首先我们要知道等差数列通项公式 an = a1+(n-1)d a1 a2 n 是我们输入的是已知的 公差d用第二项减…… 题解列表 2024年02月27日 0 点赞 0 评论 304 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,ans=0; cin>…… 题解列表 2024年02月27日 0 点赞 0 评论 230 浏览 评分:0.0
题解 2233: 蓝桥杯算法训练-图形显示 摘要:参考代码:参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace std;int a;int main(){ system(…… 题解列表 2024年02月27日 0 点赞 0 评论 160 浏览 评分:9.9
2776: A*B问题 摘要:解题思路: 简单的求A*B的输出 就是加了一个范围 1 <= A,B <= 50000。注意事项:参考代码:#include<stdio.h>int main(){ int A,B; scanf…… 题解列表 2024年02月27日 0 点赞 0 评论 369 浏览 评分:0.0