Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年6月3日

摘要: import reimport ioimport sysinput_stream = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8')s = input_stream.readlines()s = "\n".join(s)pc = '(//.*... 阅读全文
posted @ 2015-06-03 07:34 Tonix 阅读(621) 评论(0) 推荐(0)

摘要: So fun! It connects algorithm(regex) with real world usages!So basically speaking, C:pointer syntax, #include\scanf\typedef; Java: import\public class... 阅读全文
posted @ 2015-06-03 07:09 Tonix 阅读(733) 评论(0) 推荐(0)

摘要: Really fun regex one.import ren = int(input())txt = ''for _ in range(n): str = input() txt = txt + strdict = {}all = re.findall(']*>', txt)for i... 阅读全文
posted @ 2015-06-03 02:13 Tonix 阅读(178) 评论(0) 推荐(0)