Go 还是算了吧
为啥不一样啊
$ cal 123
123
January February March
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 6 7
4 5 6 7 8 9 10 8 9 10 11 12 13 14 8 9 10 11 12 13 14
11 12 13 14 15 16 17 15 16 17 18 19 20 21 15 16 17 18 19 20 21
18 19 20 21 22 23 24 22 23 24 25 26 27 28 22 23 24 25 26 27 28
25 26 27 28 29 30 31 29 30 31
April May June
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 1 2 1 2 3 4 5 6
5 6 7 8 9 10 11 3 4 5 6 7 8 9 7 8 9 10 11 12 13
12 13 14 15 16 17 18 10 11 12 13 14 15 16 14 15 16 17 18 19 20
19 20 21 22 23 24 25 17 18 19 20 21 22 23 21 22 23 24 25 26 27
26 27 28 29 30 24 25 26 27 28 29 30 28 29 30
31
July August September
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 1 1 2 3 4 5
5 6 7 8 9 10 11 2 3 4 5 6 7 8 6 7 8 9 10 11 12
12 13 14 15 16 17 18 9 10 11 12 13 14 15 13 14 15 16 17 18 19
19 20 21 22 23 24 25 16 17 18 19 20 21 22 20 21 22 23 24 25 26
26 27 28 29 30 31 23 24 25 26 27 28 29 27 28 29 30
30 31
October November December
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 1 2 3 4 5 6 7 1 2 3 4 5
4 5 6 7 8 9 10 8 9 10 11 12 13 14 6 7 8 9 10 11 12
11 12 13 14 15 16 17 15 16 17 18 19 20 21 13 14 15 16 17 18 19
18 19 20 21 22 23 24 22 23 24 25 26 27 28 20 21 22 23 24 25 26
25 26 27 28 29 30 31 29 30 27 28 29 30 31
不要问我算法,我真的什么都不会
再把小数点往右移一位...
#!/usr/bin/env escript
balanced("", "") ->
true;
balanced("("++T, Stack) ->
balanced(T, "("++Stack);
balanced(")"++T, "("++Stack) ->
balanced(T, Stack);
balanced("{"++T, Stack) ->
balanced(T, "{"++Stack);
balanced("}"++T, "{"++Stack) ->
balanced(T, Stack);
balanced(_, _) ->
false.
balanced(S) ->
balanced(S, "").
test() ->
true = balanced(""),
true = balanced("()"),
true = balanced("(())"),
true = balanced("{}"),
true = balanced("{{}}"),
true = balanced("({})"),
true = balanced("{()}"),
false = balanced("("),
false = balanced(")"),
false = balanced("(()"),
false = balanced("())"),
false = balanced("{"),
false = balanced("}"),
false = balanced("{{}"),
false = balanced("{}}"),
false = balanced("{(})"),
true = balanced("({})(){()}"),
ok.
main(_) ->
test().
反正我看到这种都直接关掉的
截止日期:2013 年 11 月 29 日 ...
我早就说了,因为 SQL is Agile
追新帝你好
commit message 还是非常难写的,除了 typo 什么的,都是对抽象的抽象啊 ...
区别就是,只用git fetch
就可以了
求 C++ 大神带啊...
求带阿
太厉害了,求带阿