算法竞赛
文章平均质量分 56
算法题刷题补题题解
HoveyQAQ
卷
心
菜
展开
-
Educational Codeforces Round 132 (Rated for Div. 2)(A~C)
Educational Codeforces Round 132 (Rated for Div. 2)(A~C)原创 2022-07-27 00:15:05 · 186 阅读 · 0 评论 -
Codeforces Round #797 (Div. 3)(A~E)
Codeforces Round #797 (Div. 3)(A~E)原创 2022-07-26 01:57:26 · 172 阅读 · 0 评论 -
Codeforces Round 118 (Rated for Div. 2)(ABC)
A题链接解题思路:中心思想——节约时间#include <bits/stdc++.h> using namespace std; int main (){ int t; while (cin >> t) { while(t--) { string a,b;//10e6 用数字直接来肯定会爆 所以用字符串 int c,d; cin >> a >> c; cin >>原创 2021-12-03 23:32:11 · 483 阅读 · 0 评论 -
Codeforces489B(题解)
B. BerSU Balltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Berland State University is hosting a ballroom dance in celebration of its 100500-th anniversary!nboys andmgirls are...原创 2021-12-01 20:25:44 · 789 阅读 · 0 评论 -
Codeforces Round #756 (Div. 3) (AB题解)
A. Make Eventime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has an integernnthat doesn't contain the digit0. He can do the following operation with his number several (possi...原创 2021-11-26 16:19:03 · 552 阅读 · 0 评论 -
DFS基础例题(全排列)
#include<iostream>using namespace std;int n;int book[10] = {0};int a[10]; void dfs(int index){ if(index == n) //递归终止条件 { for(int i = 0;i < n;i++) cout << a[i]; cout <<endl; return ; } else { for(int.原创 2021-10-17 15:00:45 · 194 阅读 · 0 评论 -
Codeforces Round #756 (Div. 3)- C
<补题>/* Codeforces Round #756 (Div. 3)-------C*/ //#include <bits/stdc++.h>#include <vector>#include <iostream>using namespace std;//对原序列 p 操作只操作小的数 所以最大值会在最左边或最右边 int n;int a[200200];int bucket[200200]; int main(){原创 2021-11-27 19:15:14 · 601 阅读 · 0 评论 -
Codeforces Round #810 (Div. 2) (A~C)
Codeforces Round #810 (Div. 2) (A~C题解)原创 2022-07-25 23:44:28 · 327 阅读 · 0 评论