简介
什么是Bash On Windows
简单的说,这是微软搞的黑魔法,可以在Win10上附加一个Linux子系统,真正的子系统,各种软件都可以直接跑
为什么要用它?
OI系列比赛(WC,NOI)使用的环境是由Ubuntu魔改过来的Linux,提前适应一下环境总是好的。
阅读全文SIGSLEEP Fellow
简单的说,这是微软搞的黑魔法,可以在Win10上附加一个Linux子系统,真正的子系统,各种软件都可以直接跑
OI系列比赛(WC,NOI)使用的环境是由Ubuntu魔改过来的Linux,提前适应一下环境总是好的。
阅读全文原题地址:Codeforces
题意:判断回文时间。
先搞出来一个判断回文的函数,然后枚举分钟。
阅读全文注意到$a,b\leq 60$,所以预处理出所有$x^a,y^b$存起来,然后两两求和,去重, 然后处理一下得到答案。
开unsigned long long
while (num <= 1e18)
num = num * x
这样写是不符合基本法的,会溢出掉的
阅读全文问题:题目地址
Vladik often travels by trains. He remembered some of his trips especially well and I would like to tell you about one of these trips:
Vladik is at initial train station, and now n people (including Vladik) want to get on the train. They are already lined up in some order, and for each of them the city code $a_i$ is known (the code of the city in which they are going to).