题解列表

筛选

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, y; int a = 0; scanf("%d %d %d", &n, &x, &y); i……

2023-3仅供自己回忆使用

摘要:#include<stdio.h>#include<math.h>int main(){    int i=2,n=2,Num=0,control=0;    int th;    scanf("%d……

题解 2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa = 0; double ya = 0; double xb ……

2839: 石头剪刀布

摘要:#include<stdio.h> #include<math.h> int main() {     int n,na,nb;     scanf("%d %d %d",&n,&na,……

仅8行代码解决(Python)

摘要:解题思路:注意事项:参考代码:# 方法1-BFSdef bfs(queue):    for i in queue:# python语言的特点:列表在遍历的过程中,不断给列表添加元素,遍历继续,直到没……

3021: Pell数列

importjava.util.*;publicclassPell数列{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=sc.nextInt();ArrayListarrayList=newArrayLis

题目 2171: 信息学奥赛一本通T1329-细胞

##**信息学奥赛一本通T1329-细胞**###题目描述一矩形阵列由数字00到99组成,数字11到99代表细胞,细胞的定义为沿细胞数字上下左右还是细胞数字则为同一细胞,求给定矩形阵列的细胞个数。如下阵列,有44个细胞:41002345000671034560500204560067100000000

2836: 数组逆序重放

摘要:#include<stdio.h>#include<math.h>int main(){    int n;    scanf("%d",&n);    int a[n];    for(int i ……

LikeWater - 1585: 蓝桥杯算法训练VIP-链表数据求和操作(同1511-复数求和是一样的题,不做第二遍直接copy+稍微改下)

####我很懒,坐在这里只要动动手和脑子的事,有时候都会觉得题目难烧脑子,让我做第二遍,不可能!除非你能出的不一样,要是稍微一样我都会直接copy,没什么意思,就是觉得刷题很爽,但是刷一样的题目就很烦。```cpp#includeusingnamespacestd;//读入10个复数,