- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 FOJ 1914 Funny Positive Sequence
Funny Positive Sequence Accept: 422 Submit: 1860 Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description There are n integers a1,a2,…,an-1,an in the sequence A, the sum of
2016-04-29 21:41:46 332
原创 sdut 2605 Mountain Subsequences(树状数组)
Mountain Subsequences Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 Coco is a beautiful ACMer girl living in a very beautiful mountain. There are many trees and flowers on the
2016-04-27 21:05:11 374
原创 sduT 2605-A^X mod P(大幂分解求和)
A^X mod P Time Limit: 5000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 It's easy for ACMer to calculate A^X mod P. Now given seven integers n, A, K, a, b, m, P, and a function f(x) which defi
2016-04-26 19:13:09 539 1
原创 FZOJ 2216 The Longest Straight (尺取法)
The Longest Straight Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description ZB is playing a card game where the goal is to make straights. Each card in
2016-04-19 17:24:20 477
转载 fzuoj 2218 Simple String Problem(状态压缩dp)
Problem 2218 Simple String Problem Accept: 10 Submit: 40 Time Limit: 2000 mSec Memory Limit : 32768 KB Problem Description Recently, you have found your interest in string theory. Her
2016-04-19 13:12:06 294
原创 poj 1151(线段树+扫描线)
Atlantis Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20311 Accepted: 7666 Description There are several ancient Greek texts that contain descriptions of
2016-04-10 21:59:21 362
转载 线段树求矩形面积并 扫描线+离散化
线段树求矩形面积并 扫描线+离散化 顾名思义,扫描法就是用一根想象中的线扫过所有矩形,在写代码的过程中,这根线很重要。方向的话,可以左右扫,也可以上下扫。方法是一样的,这里我用的是由下向上的扫描法。 如上图所示,坐标系内有两个矩形。位置分别由左下角和右上角顶点的坐标来给出。上下扫描法是对x轴建立线段树,矩形与y平行的两条边是没有用的,在这里直接去掉。如下图。 现想象有一条
2016-04-09 10:38:44 387
原创 XTU1238:Segment Tree(线段树区间更新)
Segment Tree Accepted : 98 Submit : 545 Time Limit : 9000 MS Memory Limit : 65536 KB Segment Tree Problem Description: A contest is not integrity without pr
2016-04-08 10:17:10 457
原创 hdu 3572(最大流)
Task Schedule Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6590 Accepted Submission(s): 2058 Problem Description Our geometry pri
2016-04-03 11:01:10 323
原创 素数操作
Cube Number Time Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 In mathematics, a cube number is an integer that is the cube of an integer. In other words, it is the product of some
2016-04-02 16:54:15 298
c++ 字符串表达式求值
2019-01-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人