码迷,mamicode.com
首页 >  
搜索关键字:dragon balls    ( 484个结果
5.23 VJ D - Kana and Dragon Quest game
#include<bits/stdc++.h>#define ll long longusing namespace std;/*题意:怪物血量为x,可以使用两种技能,分别为x/2+10和x-10,当x<=10时不能使用技能1*/int main(){ int t,x,n,m; cin>>t; fo ...
分类:其他好文   时间:2020-05-23 13:04:49    阅读次数:50
[CF Contest] Kana and Dragon Quest game 题解
对于这道题,我们可以简化为: kana要打败恶龙,恶龙有h点血。 Kana有两种法术: 1. V法术——使龙的血量变成$[\frac{h}{2}]+10$([ ]代表向上取整)。 2. L法术——使龙的血量变成$h 10$。 给你龙的血量和使用V法术和L法术的最大次数,问可爱的kana能否杀死恶龙。 ...
分类:其他好文   时间:2020-04-27 22:33:10    阅读次数:54
工厂模式(产品注册模板类+单例工厂模板类)
:dragon_face: 工厂模式 产品注册模板类+单例工厂模板类 ...
分类:其他好文   时间:2020-04-25 17:30:05    阅读次数:120
【cf755G】G. PolandBall and Many Other Balls(dp+生成函数+倍增)
"传送门" 题意: 给定$n$个小球,标号为$1,2,...,n$,现在要从中选出$m$组。每一组只能包含一个小球或者两个标号相邻的小球。 给定$k$,求出所有分组为$m,1\leq m\leq k$的方案数。 思路: 考虑直接暴力$dp:dp_{i,j}$表示前$i$个球划分$j$个组的方案数,那 ...
分类:数据库   时间:2020-04-17 23:57:29    阅读次数:160
Uva 679(Dropping Balls)小球下落
题目描述有一棵二叉树,最大深度为D,且所有叶子的深度都相同。所有结点从上到下从左到右编号为1,2,3,…,2D-1。在结点1处放一个小球,它会往下落。每个内结点上都有一个开关,初始全部关闭,当每次有小球落到一个开关上时,它的状态都会改变。当小球到达一个内结点时,如果该结点上的开关关闭,则往左走,否则 ...
分类:其他好文   时间:2020-04-14 00:41:06    阅读次数:63
HDU3635 Dragon Balls (带权并查集)
Dragon Balls Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10628 Accepted Submission(s): 3802 P ...
分类:其他好文   时间:2020-03-24 10:35:12    阅读次数:64
[Algo] 11. Rainbow Sort
Given an array of balls, where the color of the balls can only be Red, Green or Blue, sort the balls such that all the Red balls are grouped on the le ...
分类:其他好文   时间:2020-03-04 09:17:30    阅读次数:83
AtCoder Beginner Contest 154 题解
人生第一场 AtCoder,纪念一下 话说年后的 AtCoder 比赛怎么这么少啊(大雾 AtCoder Beginner Contest 154 题解 A Remaining Balls We have A balls with the string S written on each of th ...
分类:其他好文   时间:2020-02-09 22:16:59    阅读次数:127
Cow Bowling
The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling- ...
分类:其他好文   时间:2020-02-02 19:42:09    阅读次数:74
勇士斗恶龙
勇者斗恶龙(The Dragon of Loowater, UVa 11292) 你的王国里有一条n个头的恶龙,你希望雇一些骑士把它杀死(即砍掉所有头)。村里有m个骑士可以雇佣,一个能力值为x的骑士可以砍掉恶龙一个直径不超过x的头,且需要支付x个金币。如何雇佣骑士才能砍掉恶龙的所有头,且需要支付的金 ...
分类:其他好文   时间:2020-01-27 23:37:40    阅读次数:104
484条   上一页 1 2 3 4 ... 49 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!