牛客多校
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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 · 1643 阅读 · 3 评论 -
2020牛客暑期多校训练营(第九场)解题报告(正在更新)
A:Groundhog and 2-Power Representation 链接 题意: 朴素的递归思想,模拟从里到外去括号的过程,加上高精度即可AC def x(a): return 2**a str = 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 · 327 阅读 · 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 · 177 阅读 · 0 评论 -
2020牛客多校第八场 K Kabaleo Lite
题目链接 Tired of boring WFH (work from home), Apollo decided to open a fast food restaurant, called Kabaleo Lite. The restaurant serves n kinds of food, numbered from 1 to n. The profit for the i-th kind of food is ai . Profit may be negative because it use原创 2020-08-03 20:16:14 · 367 阅读 · 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 · 319 阅读 · 0 评论
分享