上一页 1 ··· 9 10 11 12 13

2018年2月11日

TOJ4127: Root of String

摘要: 传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=4127 4127: Root of String 时间限制(普通/Java):1000MS/3000MS 内存限制:65536KByte 描述 The 阅读全文

posted @ 2018-02-11 21:17 Esquecer 阅读(186) 评论(0) 推荐(0) 编辑

2018年全国多校算法寒假训练营练习比赛(第四场)B:道路建设

摘要: 传送门:https://www.nowcoder.net/acm/contest/76/B 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 65536K,其他语言131072K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 阅读全文

posted @ 2018-02-11 16:37 Esquecer 阅读(150) 评论(0) 推荐(0) 编辑

2018年全国多校算法寒假训练营练习比赛(第四场)F:Call to your teacher

摘要: 传送门:https://www.nowcoder.net/acm/contest/76/F 题目描述 从实验室出来后,你忽然发现你居然把自己的电脑落在了实验室里,但是实验室的老师已经把大门锁上了。更糟的是,你没有那个老师的电话号码。你开始给你知道的所有人打电话,询问他们有没有老师的电话,如果没有,他 阅读全文

posted @ 2018-02-11 16:29 Esquecer 阅读(231) 评论(0) 推荐(0) 编辑

TOJ1302: 简单计算器 && TOJ 4873: 表达式求值&&TOJ3231: 表达式求值

摘要: 这些都是应用Python的eval函数的一些题目! TOJ1302传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1302 TOJ4873传送门:http://acm.tzc.edu.cn/acmhom 阅读全文

posted @ 2018-02-11 10:16 Esquecer 阅读(292) 评论(0) 推荐(0) 编辑

TOJ 3973 Maze Again && TOJ 3128 简单版贪吃蛇

摘要: TOJ3973传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3973 时间限制(普通/Java):1000MS/3000MS 内存限制:65536KByte总提交: 198 测试通过:52 描述 Th 阅读全文

posted @ 2018-02-11 09:56 Esquecer 阅读(231) 评论(0) 推荐(0) 编辑

2018年2月10日

java 对一个字符串去重,即去掉字符串内重复元素

摘要: String str ="abc|efa|abc|efa|abc"; String str1 = str.replaceAll("(?s)(.)(?=.*\\1)", ""); System.out.println(str1); 其中:("(?s)(.)(?=.*\\1)解释如下; (?s) 开启单 阅读全文

posted @ 2018-02-10 21:40 Esquecer 阅读(1158) 评论(0) 推荐(0) 编辑

TOJ 4383 n % ( pow( p , 2) ) ===0

摘要: 传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=4383 描述 There is a number n , determine whether there is a p (p>1) that p^2 i 阅读全文

posted @ 2018-02-10 15:18 Esquecer 阅读(252) 评论(0) 推荐(0) 编辑

TOJ 3589 likaer的最长点距

摘要: 传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3589 时间限制(普通/Jav a):7000MS/70000MS 内存限制:65536KByte 描述 我们都知道,炉子喜欢做题,尤其喜欢做likae 阅读全文

posted @ 2018-02-10 15:01 Esquecer 阅读(138) 评论(0) 推荐(0) 编辑

牛客网练习赛12---A and B

摘要: A题传送门:https://www.nowcoder.net/acm/contest/68/A B题传送门: https://www.nowcoder.net/acm/contest/68/B A题: 题目描述 我们定义一个圆 C 为以原点 (0, 0) 为中心的单位圆(半径为 1 的圆)。给定在 阅读全文

posted @ 2018-02-10 14:51 Esquecer 阅读(212) 评论(0) 推荐(0) 编辑

TOJ 2755 国际象棋(搜索)

摘要: 传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=2755 思路:对起点到终点进行广搜,由于n特别大,不能用二维数组记录走过的点,可以用STL的map进行记录,map<pair<int,int>,int> 阅读全文

posted @ 2018-02-10 14:38 Esquecer 阅读(147) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13

导航