- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 理发师问题的实现
理发师问题: 一个理发店由一个有几张椅子的等待室和一个放有一张理发椅的理发室组成。 1. 若没有要理发的顾客,则理发师去睡觉; 2. 若一顾客进入理发店,理发师正在为别人理发,且等待室有空椅子,则该顾客就找张椅子按顺序坐下; 3. 若一顾客进入理发店,理发师在睡觉,则叫醒理发师为该顾客理发; 4. 若一顾客进入理发店且所有椅子都被占用了,则该顾客就
2016-12-29 00:37:33 3114
原创 Codeforces Round #389 C. Santa Claus and Robot
C. Santa Claus and Robot time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Santa Claus has Robot which lives on the inf
2016-12-27 22:22:28 808
原创 hdu 5996 dingyeye loves stone
dingyeye loves stone Problem Description dingyeye loves play stone game with you. dingyeye has an n-point tree.The nodes are numbered from 0 to n−1,while the root is numbered 0.In
2016-12-22 21:57:47 535
原创 Codeforces Round #383 (Div. 2) C. Arpa's loud Owf and Mehrdad's evil plan
C. Arpa's loud Owf and Mehrdad's evil plan time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output As you have noticed, there
2016-12-07 12:25:35 836
原创 Process输入流输出流及对C++、Python的测试
对C++部分的测试来自文章: http://fair-jm.iteye.com/blog/1442267 C++代码 #include #include using namespace std; void main(){ cout<<"hello world"<<endl; strin
2016-12-05 23:55:06 1540
原创 51nod算法马拉松20 C、战忽局的手段
战忽局的手段 基准时间限制:2 秒 空间限制:262144 KB 分值: 80 众所周知,有一个神秘的组织——战忽局,在暗中保护着我们。在局中任职的官员都有着极强的忽悠技巧,不只能用预言,还能用往事忽悠人。如今某外星间谍已经获得了战忽局曾经参与的n次事件的资料,局座发现了这件事,于是决定再次用忽悠来保证战忽局的安全。局座将发表m次演讲,每一天他都会从
2016-12-02 16:11:39 859
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人