
模拟
上决FX
这个作者很懒,什么都没留下…
展开
-
Codeforces 489C 简单构造
传送门: http://codeforces.com/contest/489/problem/C Given Length and Sum of Digits... time limit per test 1 second memory limit per test 256 megabytes input standard input output standard o原创 2015-01-12 15:06:41 · 617 阅读 · 0 评论 -
Codeforces 493C 枚举加二分
传送门:点击打开链接 C. Vasya and Basketball time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya follows a basketball game and marks原创 2015-01-13 14:28:59 · 733 阅读 · 0 评论 -
HDU 5071 Chat 暴力模拟
传送门:点击打开链接 本题题目较长,我先简单说一下。#include #include #include #define LL __int64 using namespace std; struct qq { int p[5005],top; int len; LL c[5005]; void add(int u) { for(int i=原创 2014-12-29 15:56:08 · 595 阅读 · 0 评论 -
HDU 4930 Fighting the Landlords 模拟
传送门:点击打开链接 题意:斗地主,问这轮是否存在一种出牌的方式,使对方无法跟牌。若本轮能把牌出完,也算达到目的。 大小关系不再赘述。可以出单,对,三,三带一,三带对,四带二,对鬼,炸弹。 思路:先检查有没有方法让所有牌全部出掉,如果没有的话再每一种出牌方式进行比较。出牌方式应该要有优先级的考虑,如对鬼的优先级最高,它可以秒杀一切。出了之后保证对方要不起。 详细参见代码。 #includ原创 2014-12-29 16:20:04 · 526 阅读 · 0 评论 -
HDU5336 XYZ and Drops 暴力模拟
XYZ and Drops Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description XYZ is playing an interesting game called "drops". It is played on a原创 2015-08-01 11:24:27 · 931 阅读 · 0 评论