牛客多校
「已注销」
这个作者很懒,什么都没留下…
展开
-
2020牛客暑期多校训练营(第十场)解题报告(更新中)
A:Permutation#include <bits/stdc++.h>#define rep(i,a,b) for(int i=a;i<b;i++) #define T int t ;cin >> t;while(t--)using namespace std ;typedef long long ll;typedef unsigned long long ull;ll p ;inline ll gcd(ll a,ll b){return b == 0? a原创 2020-08-10 15:02:32 · 1557 阅读 · 3 评论 -
2020牛客暑期多校训练营(第九场)解题报告(正在更新)
A:Groundhog and 2-Power Representation链接题意:朴素的递归思想,模拟从里到外去括号的过程,加上高精度即可ACdef x(a): return 2**astr = input()str = str.replace("2(","x(")print(eval(str))I:The Crime-solving Plan of Groundhog题意: 给出n个1-9之间的数字,组成两个正整数(不含前导零)求出乘积的最小值。思路:只有在一个数字乘上一原创 2020-08-09 09:40:15 · 275 阅读 · 0 评论 -
2020牛客暑期多校 I Interesting Computer Game (并查集+离散化)
I Interesting Computer Game题意:有两个数组a , b , 第i步可以从ai bi 中选取一个数,求出最多能获取几个不同的数字 。下面直接上AC代码:并查集+离散化#include <bits/stdc++.h>#define rep(i,a,b) for(int i=a;i<b;i++) #define T int t ;cin >> t;while(t--)using namespace std ;typedef long lo原创 2020-08-04 21:45:10 · 144 阅读 · 0 评论 -
2020牛客多校第八场 K Kabaleo Lite
题目链接Tired of boring WFH (work from home), Apollo decided to open a fastfood restaurant, called Kabaleo Lite. The restaurant serves n kinds offood, numbered from 1 to n. The profit for the i-th kind of food isai . Profit may be negative because it use原创 2020-08-03 20:16:14 · 313 阅读 · 0 评论 -
2020牛客多校第七场B Mask Allocation
比赛题目链接题目介绍Nowadays, the Kingdom of Dreamgrid is suffering from a national pandemic. Fortunately, president Baobao is working effectively with the Center for Disease Control (CDC) and they are trying their best to make everything under control.President原创 2020-08-01 20:07:58 · 275 阅读 · 0 评论