少年 无爱可破情局 无情方可破全局 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int n, m, a[110], sum[110];…… 题解列表 2024年12月21日 0 点赞 0 评论 189 浏览 评分:0.0
1866: 三位数反转 摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True: try: a = list(input()) b = a[::-1] …… 题解列表 2024年12月21日 0 点赞 0 评论 343 浏览 评分:0.0
一维数组解决,嘿嘿嘿,我就爱写点超级简单好理解的题解 摘要:解题思路:解题思路啊,我就是当初想多了其他前辈们解决其他题目的想法而已,size其实可以没有来着这题,我一直就是想要用一维数组解决而已思路就下面这个啊/*1 a[0]=11 1 a[0]=1 a[…… 题解列表 2024年12月21日 2 点赞 0 评论 318 浏览 评分:10.0
1782: 找出最长的字符串来 摘要:注意事项:字符串相等不能用'=',要用strcpy(x,y),将数组y赋给x;计算数组长度用strlen()!!都需要声名 <string.h>!!参考代码:#include<stdi…… 题解列表 2024年12月21日 1 点赞 0 评论 309 浏览 评分:10.0
登陆验证问题(一) 摘要:注意事项:库函数strcmp要提前用<string.h>声明;如果strcmp(x,y)==0,数组x与y完全一样;参考代码:#include<stdio.h>#include<string.h>in…… 题解列表 2024年12月21日 1 点赞 0 评论 219 浏览 评分:10.0
蓝桥杯算法训练VIP-比较字符串 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char b[101],a[101]; scanf("%s …… 题解列表 2024年12月21日 0 点赞 0 评论 165 浏览 评分:0.0
计算球体积 摘要:解题思路:注意事项:参考代码:import mathpi=math.pi //导入库while True: &n 题解列表 2024年12月21日 2 点赞 0 评论 642 浏览 评分:0.0
三个循环嵌套搞定(第一个完成赋值输入,第二个完成转置,第三个完成输出)。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3],b[3][3]; for(i=0;i<=2;i++) { …… 题解列表 2024年12月21日 2 点赞 0 评论 580 浏览 评分:0.0
c++,编写题解 3132: 重载函数练习1 摘要:主要是输入顺序不固定参考代码:#include<iostream> #include <string.h> using namespace std; int fun(char a[]) { …… 题解列表 2024年12月21日 0 点赞 0 评论 304 浏览 评分:0.0
我也想要能量项链 摘要:解题思路: 区间DP解法注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int…… 题解列表 2024年12月21日 0 点赞 0 评论 384 浏览 评分:0.0