题解列表

筛选

题解 2841: 大整数加法

摘要:解题思路:跟小学计算列竖式一样,搞清楚进位情况就行。注意事项:和列竖式一样,从每个数组的最后一位数字开始往前计算,再判断进位。参考代码:#include<stdio.h>#in……

1002: 三个数最大值

摘要:解题思路:三目运算注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; int max=0; scanf("%d %d %d&quo……

2086: 最长公共子序列

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int max(int x,int y){ ret……

3048: 抓住那头牛

摘要:解题思路:广度优先算法,使用队列的结构注意事项:注意更新状态数组v[MAX_POS+1]参考代码:#include<stdio.h>#include<string.h>#def……