在分析 gen_server (或者是gen_fsm )之前,首先应该弄明白,gen 这个module .1 -module(gen).2 -compile({inline,[get_node/1]}).3 4 %%%-----------------------------------------...
分类:
其他好文 时间:
2015-02-04 01:54:00
阅读次数:
229
1021. 个位数统计 (15)时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue给定一个k位整数N = dk-1*10k-1+ ... + d1*101+ d0(00),请编写程序统计每种不同的个位数字出现的次数。例如:给定N = 1...
分类:
其他好文 时间:
2015-02-04 00:25:00
阅读次数:
263
接触Erlang有段时间了,之前一直懒得总结,发现很多东西都是散落各处,总想拾起,可又感觉像是流沙。就从现在开始吧,慢慢总结起来,捡起来。先计划写一些系列性的,比如说generic standard behaviours、beach的一些小东西、常用的一些开源工具、生产环境下虚拟机参数的调整、看到的...
分类:
其他好文 时间:
2015-02-04 00:21:03
阅读次数:
254
1006. 换个格式输出整数 (15)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue让我们用字母B来表示“百”、字母S表示“十”,用“12...n”来表示个位数字n( 2 #include 3 #include 4 #include...
分类:
其他好文 时间:
2015-02-03 22:54:40
阅读次数:
195
1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would know the world of magic...
分类:
其他好文 时间:
2015-02-03 22:39:22
阅读次数:
204
1019. General Palindromic Number (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwa...
分类:
其他好文 时间:
2015-02-03 21:16:09
阅读次数:
211
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins...
分类:
系统相关 时间:
2015-02-03 21:12:01
阅读次数:
196
1027. Colors in Mars (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YuePeople in Mars represent the colors in their computers in a similar...
分类:
其他好文 时间:
2015-02-03 21:04:50
阅读次数:
136
1031. Hello World for U (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters, you are asked to form th...
分类:
其他好文 时间:
2015-02-03 19:19:07
阅读次数:
307
1027. 打印沙漏(20)时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印***** *** * ********所谓“沙漏形状”,是指每行输....
分类:
其他好文 时间:
2015-02-03 19:05:05
阅读次数:
97