1127: C语言训练-尼科彻斯定理 摘要:解题思路:注意事项:参考代码:n = int(input())m = n**3l = []if m % 2 == 1: k = m//n k = k…… 题解列表 2026年02月11日 0 点赞 0 评论 367 浏览 评分:0.0
最简单思路,没有之一 摘要:解题思路:拿到这道题,看一下题意与数据规模,暴力肯定过不了,但这里我们不妨想想暴力是怎么写的,其实就是对每个结点进行dfs嘛,查找它能到的所有结点中最大的那个返回,然后求和最后除以结点数量对吧?那确实…… 题解列表 2026年02月12日 1 点赞 0 评论 499 浏览 评分:0.0
莉露编写题解 2847: 找第一个只出现一次的字符 摘要:解题思路:for(int i = 0;i<strlen(s);i++){ for(int j=0;j<strlen(s);j++){if(s[j] == s[i]…… 题解列表 2026年02月12日 1 点赞 0 评论 362 浏览 评分:0.0
莉露编写题解 2849: 石头剪子布 摘要:解题思路:一看就知道注意事项:用scanf最方便判断时只看首字母即可。参考代码:#include<stdio.h>#include<string.h>#define MAX 1…… 题解列表 2026年02月12日 0 点赞 0 评论 381 浏览 评分:0.0
莉露编写题解 1200: 回文串 摘要:解题思路:for循环最左最右先比,逐渐往中间看注意事项:注意嵌套顺序参考代码:#include<stdio.h>#include<string.h>#define MAX 25…… 题解列表 2026年02月13日 0 点赞 0 评论 339 浏览 评分:0.0
计算鞍点C++解法,可统计多个 摘要:```cpp#include #include #include using mat = std::vector;//矩阵输入void matrixcin(mat& mat…… 题解列表 2026年02月14日 0 点赞 0 评论 252 浏览 评分:0.0
使用埃氏筛法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdbool.h>#define MAX 110000 // 第10000个…… 题解列表 2026年02月17日 0 点赞 0 评论 166 浏览 评分:0.0
使用冒泡排序进行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d&qu…… 题解列表 2026年02月19日 0 点赞 0 评论 138 浏览 评分:0.0
c++财务管理 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor…… 题解列表 2026年02月22日 0 点赞 0 评论 126 浏览 评分:0.0
C++整数平均值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor…… 题解列表 2026年02月22日 0 点赞 0 评论 109 浏览 评分:0.0