摘要: Online JudgeIgnatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data ... 阅读全文
posted @ 2017-04-13 09:51 南风古 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Password security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecu... 阅读全文
posted @ 2017-04-12 19:28 南风古 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Problem Description If you ever tried to read a html document on a Macintosh, you know how hard it is if no Netscape is installed. Now, who c... 阅读全文
posted @ 2017-04-12 15:29 南风古 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a li... 阅读全文
posted @ 2017-04-12 14:38 南风古 阅读(214) 评论(0) 推荐(0) 编辑
摘要: A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1. F(1) = 1, F(2) = ... 阅读全文
posted @ 2017-04-12 14:11 南风古 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。Output 对每个测试用例输... 阅读全文
posted @ 2017-04-11 23:40 南风古 阅读(223) 评论(0) 推荐(0) 编辑
摘要: In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in or... 阅读全文
posted @ 2017-04-11 16:25 南风古 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn’t know the language the Martians use. The Martian gives ... 阅读全文
posted @ 2017-04-11 10:03 南风古 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Problem Description Fibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。Input 输入第一行为一个整数N,接下来N行为整数Pi(1#includeint a[1002][... 阅读全文
posted @ 2017-04-11 07:52 南风古 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 逃出迷宫时间限制: 1 Sec 内存限制: 128 MB 提交: 24 解决: 12题目描述 现在有一个迷宫,’a’代表起点位置,’.’代表可以通行的路,’#’代表不能通过的墙,’x’代表迷宫的守卫,’r’代表终点位置, 现在要求你算出起点位置到终点位置的最短时间,其中通过’.’... 阅读全文
posted @ 2017-04-10 10:06 南风古 阅读(139) 评论(0) 推荐(0) 编辑