已知三点求面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 837 浏览 评分:6.0
简单易懂的解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct cjd{ char name[25]; char xb[25]; …… 题解列表 2024年03月01日 0 点赞 0 评论 655 浏览 评分:6.0
题解 1481剪刀石头布 摘要:解题思路:看到这个题目已知0代表石头,1代表布,2代表剪刀本题有三种结局1.甲胜乙负2.甲负乙胜3.平局第一种情况 甲出石头乙出剪刀甲出剪刀乙出布甲出布乙出石头第二种情况反之第三种情况 平局甲出石头乙…… 题解列表 2024年03月01日 0 点赞 1 评论 740 浏览 评分:6.0
蓝桥杯2023年第十四届省赛真题-子串简写(C语言)此方法为暴力解法 摘要:解题思路:此方法为暴力解法,所以只考虑拿部分分数,只过百分之20的数据,直接模拟算法过程就可以注意事项:参考代码:#include <stdio.h>#include <string.h>signed…… 题解列表 2024年03月01日 0 点赞 0 评论 1150 浏览 评分:6.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,na,nb; cin >> n >> na >>…… 题解列表 2024年03月03日 0 点赞 0 评论 537 浏览 评分:6.0
归并排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int arr[N],tmp[N],…… 题解列表 2024年03月03日 0 点赞 0 评论 888 浏览 评分:6.0
蓝桥杯2023年第十四届省赛真题-飞机降落(dfs) ```#includeusingnamespacestd;constintN=20;//进行dfs,把每一种可能发生的情况都列出intn;boolf[N]={0};//标记是否被讨论过structplane{intt,d,l;//t:最早降落时间//d:可盘旋时间//l:降落所需的时间//t+d:最迟 题解列表 2024年03月04日 0 点赞 0 评论 750 浏览 评分:6.0
平方差python解 解题思路:只有当x为奇数或4的倍数时才能拆分为两个数的平方差。注意事项:x-(x//2)求奇数的个数x//4求4的倍数的个数为了计算范围[L,R]内满足条件的数目,减去f(L-1)的目的是排除掉范围[1,L-1]中的数。这是因为题目中要求的是在[L,R]范围内的数目,而不是包括[1,L-1]的数目。 题解列表 2024年03月05日 0 点赞 1 评论 834 浏览 评分:6.0
1037: [编程入门]宏定义的练习(Python) 摘要:解题思路:自定义函数注意事项:区分算数运算符的运用:/ 除 60/10 6 % 取余 10%9 1 参考代码:def much_1(a,b): …… 题解列表 2024年03月11日 1 点赞 0 评论 673 浏览 评分:6.0
用for放高度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int i=0; int apple=0; int hig[10]; int sh; for(;i<10;i+…… 题解列表 2024年03月11日 0 点赞 0 评论 441 浏览 评分:6.0