区间dp——记忆化搜索 摘要:参考代码:importjava.util.Scanner;/***@author小张*{@code@…… 题解列表 2025年10月02日 2 点赞 0 评论 179 浏览 评分:6.0
哥德巴赫曾猜测思路简单解 摘要:解题思路:注意事项:参考代码:#include<iostream>#define MAX 32767using namespace std;bool isPrime(int num){&n…… 题解列表 2025年09月29日 0 点赞 0 评论 223 浏览 评分:7.0
优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 2 点赞 0 评论 191 浏览 评分:10.0
求10000以内n的阶乘 摘要:解题思路:注意事项:Python默认限制了可以转换为字符串的整数的最大位数为4300位。由于10000的阶乘远大于这个限制,因此抛出了ValueError。参考代码:import mathimport…… 题解列表 2025年09月27日 0 点赞 0 评论 212 浏览 评分:0.0
编写题解 3106: 最优乘车(travel) 摘要:C++代码:```cpp#include #include #include #include using namespace std;const int INF=0x3f…… 题解列表 2025年09月27日 1 点赞 0 评论 190 浏览 评分:0.0
C语言和C++两种写法 摘要:###C语言 无封装#include<stdio.h>#define MAX 100;int main(){ int i,j; int …… 题解列表 2025年09月27日 0 点赞 0 评论 245 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1…… 题解列表 2025年09月24日 0 点赞 0 评论 345 浏览 评分:0.0
2799: 奥运奖牌计数 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int n; int a…… 题解列表 2025年09月24日 0 点赞 0 评论 309 浏览 评分:0.0
1807: [编程基础]输入输出练习之格式控制 摘要:注意事项:每个字符都要占八个位置参考代码:#include<stdio.h>intmain(){inta,b,c;&…… 题解列表 2025年09月24日 7 点赞 0 评论 701 浏览 评分:0.0
看了几个发现好麻烦 于是尝试写了一个 摘要:解题思路:注意事项:参考代码:include<stdio.h>int main(){ double d=1; int n=2; …… 题解列表 2025年09月22日 2 点赞 0 评论 632 浏览 评分:10.0