Brief description:
Memory units are numbered from 1 up to N. A sequence of memory units is called a memory block.
The memory control system we consider now has four kinds of operations:
- Reset: Reset all memory units free. For each- Resetoperation, output- Reset Now.
- New x: Allocate a memory block consisted of x continuous free memory units with the least start number. For each- Newoperation, if it’s possible to allocate a memory block, output- New at A, where A is the least start number, otherwise output- Reject New.
- Free x: Release the memory block which includes unit x. For each- Freeoperation, if it’s possible to find a memory block occupy unit x, output- Free from A to B, where A and B refer to the start and end number of the memory block, otherwise output- Reject Free.
- Get x: Return the start number of the xth memory block(Note that we count the memory blocks allocated from left to right). For each- Getoperation, if it’s possible to find the xth memory blocks, output- Get at A, where A is its start number, otherwise output- Reject Get.
Where 1<=x<=N. You are request to find out the output for M operations. Output one blank line after each test case.
Analysis:
… 略)
http://acm.hust.edu.cn/vjudge/contest/viewSource.action?id=1236087
External link:
…




 Alca
 Alca Amber
 Amber Belleve Invis
 Belleve Invis Chensiting123
 Chensiting123 Edward_mj
 Edward_mj Fotile96
 Fotile96 Hlworld
 Hlworld Kuangbin
 Kuangbin Liyaos
 Liyaos Lwins
 Lwins LYPenny
 LYPenny Mato 完整版
 Mato 完整版 Mikeni2006
 Mikeni2006 Mzry
 Mzry Nagatsuki
 Nagatsuki Neko13
 Neko13 Oneplus
 Oneplus Rukata
 Rukata Seter
 Seter Sevenkplus
 Sevenkplus Sevenzero
 Sevenzero Shirleycrow
 Shirleycrow Vfleaking
 Vfleaking wangzhpp
 wangzhpp Watashi
 Watashi WJMZBMR
 WJMZBMR Wywcgs
 Wywcgs XadillaX
 XadillaX Yangzhe
 Yangzhe 三途川玉子
 三途川玉子 About.me
 About.me Vijos
 Vijos
