排队买票(有趣的方法) 摘要:解题思路: M个人,N个一元,K个两元。将这M个人以0到M-1的编号存入到vector中,对这两个组成部分进行判断, &n 题解列表 2021年08月25日 0 点赞 0 评论 391 浏览 评分:9.9
优质题解 能量项链----区间DP做法 摘要:本来算法使用MarkDown写,但是发现我们的MarkDown真的难用~题目大意:有n个珠子编号为1~n且首尾相接为环状,每一个珠子有头标记和尾标记,第i个珠子的尾标记是第i-1个珠子的头标记,第i个…… 题解列表 2021年08月25日 0 点赞 10 评论 2620 浏览 评分:9.8
2321231232其233123232323 摘要:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i++) { cin>>a[i]; } f…… 题解列表 2021年08月24日 0 点赞 0 评论 392 浏览 评分:9.9
递归算法,简单易懂 摘要:#include<iostream>using namespace std;int n,k;int judge(bool is_zero,int num){ num++; if (num …… 题解列表 2021年08月23日 0 点赞 0 评论 341 浏览 评分:0.0
高端的食材只需要简单的烹饪.(狗头) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b, c, d; cin >> a >> b >> c …… 题解列表 2021年08月22日 0 点赞 0 评论 415 浏览 评分:6.0
编辑距离-C++代码 摘要: #include #include using namespace std; int main() { string a,b; …… 题解列表 2021年08月22日 0 点赞 0 评论 546 浏览 评分:9.9
STL函数翻转 摘要:解题思路:C++STL库函数翻转注意事项:参考代码:```#include<bits/stdc++.h>using namespace std;int main(){ vector<int> a…… 题解列表 2021年08月21日 0 点赞 0 评论 447 浏览 评分:9.9
1040: [编程入门]实数的打印 AC代码 摘要:```cpp #include using namespace std; int main() { cout n; cout …… 题解列表 2021年08月21日 0 点赞 0 评论 997 浏览 评分:9.9
两种方法(C++) 摘要:解题思路:注意事项:参考代码:1.#include<iostream> #include <algorithm> #include <string> using namespace std;…… 题解列表 2021年08月21日 0 点赞 0 评论 270 浏览 评分:0.0
字符串反转,只需定义一个数组 摘要:解题思路: 逆序,循环输出注意事项:参考代码: #include<iostream> #include<cstring> using namespace std; int main(){ …… 题解列表 2021年08月19日 0 点赞 0 评论 275 浏览 评分:0.0