题解列表
自定义函数之字符串连接(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<assert.h>
char* my_strcat(char* dest, char* src)
{
……
1100: 采药 动态规划
摘要:解题思路:先判断草药是否可以才,再用动态规划。注意事项:参考代码:work_time, grass_number = map(int, input().split())grass_time = []g……
连续出现的字符(简易版)
摘要:解题思路: 遍历字符串注意事项:参考代码:#include<iostream>#include <string>using namespace std;int main(){ int k; strin……
高精度加法(Python语言)
摘要:解题思路:使用两个列表分别存储两个大整数,位数少的左侧补零,额外开辟一个列表存储每位相加的结果,然后做进位处理参考代码:def loop(x,y):
global X,Y,L
x,……
C语言训练-8除不尽的数 题解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main(void)
{
int i, n, t, yes, a;
yes = 0;
for (i = 2……
蓝桥杯基础练习VIP-2n皇后问题(Python语言)
摘要:解题思路:先放置黑皇后,黑皇后放置完毕后,在黑皇后已占位的基础上开始放置白皇后,一个回合实际上既包括放置黑皇后也包括放置白皇后,待黑白皇后都放置完毕后,再恢复现场,进入下一轮参考代码:from col……
自定义函数之字符串拷贝(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<assert.h>char* my_strcpy( char* dest, const char* src,int m……
编写题解 1671: 小九九
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <string.h> //定义头文件
int main() {
int i, j;
for (i ……
编写题解 1670: 拆分位数
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <string.h> //定义头文件
int main() {
int i,j,k,l;
……