题解列表
2256: 蓝桥杯算法提高-成绩排名 暴力 好理解(傻瓜吊API方法)
摘要: import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList……
能量项链c++,循环链表
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>……
2116: 信息学奥赛一本通T1307-高精度乘法
摘要: #include
#include
int main()
{
char s1[1000],s2[1000];
int i, j,k, arr1[1000], a……
用c++中string可以避免数据过大
摘要:解题思路:将输入的数据存入字符串类型的对象中,利用该对象自带的数组可以一个一个依次求和,注意将字符型转换为整型,“1”-“0”=1;即减去“0”即可。注意事项:参考代码:#include<iostre……
python-项链项链
摘要:解题思路:注意事项:参考代码:def cal(temp):
r_index = temp.index('r')
b_index = temp.index('……
三角形c++动态规划
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>……
1034: [编程入门]自定义函数之数字分离
摘要:解题思路:先模10取余再自除10可以逆序得到一个数每位上的数,存进一个数组,逆序输出就行了。注意事项:没啥好说的,和前几题相比又不设计字符串又不涉及指针,简直是一股清流。参考代码:#include <……