做题记录2022.2.8(ac:100%) 摘要:解题思路:暴力:遍历所有切割位置的不同A和B的所有子串,判断是否是正回文串注意事项:1.子串是不同的!即不同位置出现的相同子串不应重复计数 2.非正回文串包括偶数回文串和非回…… 题解列表 2022年02月08日 0 点赞 0 评论 252 浏览 评分:2.0
Hifipsysta-1718-数据结构-堆排序(C++代码)最简单 摘要:```cpp #include #include #include using namespace std; int main(){ int N; scanf("%…… 题解列表 2022年02月14日 0 点赞 0 评论 365 浏览 评分:2.0
1020: [编程入门]猴子吃桃的问题 摘要:#include //真的特别简单 int main(void) { int n;//天数 scanf("%d",&n);//输入 int z=1;//总桃数 for (int a=1…… 题解列表 2022年02月19日 0 点赞 0 评论 213 浏览 评分:2.0
把可能的回文串凑出来即可 很简单的思路 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { static int[] Month = {31,28,31,30,31,…… 题解列表 2022年02月21日 0 点赞 0 评论 593 浏览 评分:2.0
T1006答案解答 摘要:解题思路:使用三木运算符注意事项:* 三目运算符:a > b ? c : d* 当 a > b 为真,执行c ,否则执行d参考代码:#include<stdio.h>int main(){ in…… 题解列表 2022年02月28日 0 点赞 0 评论 285 浏览 评分:2.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:代码改编自Alkaid,就是减少了b这个变量,运用了python的函数sum参考代码:n=int(input())for x in range(6,n+1): a=[] if x…… 题解列表 2022年02月28日 0 点赞 0 评论 346 浏览 评分:2.0
清晰明了不要想太多 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N, i; double sum1=0, sum2=0, M; scanf("%lf%d", &M, …… 题解列表 2022年03月09日 0 点赞 0 评论 225 浏览 评分:2.0
编写题解 1114: C语言考试练习题_排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int str[4]; for(int i=0;i<4;i++) { scanf("%d",&str[i]);…… 题解列表 2022年03月09日 0 点赞 0 评论 381 浏览 评分:2.0
没毛病吧?、老铁 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { cout<<4150<<endl; cout…… 题解列表 2022年03月15日 0 点赞 0 评论 231 浏览 评分:2.0
勉强通过测试没办法解决两行两列问题的c++代码 摘要:解题思路:首先确定该题目是属于数据结构中的连通图的遍历问题,想到要使用dfs即深度优先遍历,属于一个递归,回溯和剪枝问题注意事项:要注意递归循环时需要在设置一个数组来标记该点有没有被访问过,否则会出现…… 题解列表 2022年03月15日 0 点赞 1 评论 200 浏览 评分:2.0