摘要: 题目链接 Problem Description You're in space.You want to get home.There are asteroids.You don't want to hit them. Input Input to this problem will consist 阅读全文
posted @ 2016-02-07 16:48 ACMSaga 阅读(269) 评论(0) 推荐(0)
摘要: 题目链接 ZOJ链接 Problem Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matr 阅读全文
posted @ 2016-02-07 15:58 ACMSaga 阅读(181) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of kni 阅读全文
posted @ 2016-02-07 14:49 ACMSaga 阅读(181) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description Let S = s1 s2 … s2n be a well-formed string of parentheses. S can be encoded in two different ways: By an integer sequence P 阅读全文
posted @ 2016-02-05 15:41 ACMSaga 阅读(292) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要 阅读全文
posted @ 2016-02-05 15:25 ACMSaga 阅读(1252) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various taste 阅读全文
posted @ 2016-02-04 17:57 ACMSaga 阅读(194) 评论(0) 推荐(0)
摘要: 题目链接 Playfair is a kind of substitution cipher.And the encryption role is simple.In general,there are three steps in Playfair algorithm. Step 1: Creat 阅读全文
posted @ 2016-02-04 14:45 ACMSaga 阅读(190) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description 有一种纸牌游戏,很有意思,给你N张纸牌,一字排开,纸牌有正反两面,开始的纸牌可能是一种乱的状态(有些朝正,有些朝反),现在你需要整理这些纸牌。但是麻烦的是,每当你翻一张纸牌(由正翻到反,或者有反翻到正)时,他左右两张纸牌(最左边和最右边的纸牌,只会影 阅读全文
posted @ 2016-02-03 18:36 ACMSaga 阅读(748) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one lar 阅读全文
posted @ 2016-02-03 17:18 ACMSaga 阅读(175) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description Zty is a man that always full of enthusiasm. He wants to solve every kind of difficulty ACM problem in the world. And he has 阅读全文
posted @ 2016-02-03 17:05 ACMSaga 阅读(164) 评论(0) 推荐(0)