摘要: There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were 阅读全文
posted @ 2020-04-17 09:25 XXXSANS 阅读(125) 评论(0) 推荐(0) 编辑
摘要: — Built-in Function: int __builtin_ffs (unsigned int x)Returns one plus the index of the least significant 1-bit of x, or if x is zero, returns zero. 阅读全文
posted @ 2020-04-17 09:16 XXXSANS 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 一、为什么使用命名空间 考虑一种情况,当我们有两个同名的人,Zara,在同一个班里。当我们需要对它们进行区分我们必须使用一些额外的信息和它们的名字,比如这个区域,如果它们生活在不同的区域或者它们的母亲或父亲的名字,等等。 在您的C++应用程序中也会出现同样的情况。例如,您可能正在编写一些具有名为xy 阅读全文
posted @ 2020-04-17 00:31 XXXSANS 阅读(150) 评论(0) 推荐(0) 编辑
摘要: In the wilds far beyond lies the Land of Sacredness, which can be viewed as a tree — connected undirected graph consisting of nn nodes and n−1n−1 edge 阅读全文
posted @ 2020-04-16 23:33 XXXSANS 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdlib> usingnamespace std; int main() { cout<<"b"; system("PAUSE"); return 0; } 为什么程序没有结束,也没有用endl,flush刷新缓冲区,b照样能输出呢? c 阅读全文
posted @ 2020-04-16 17:17 XXXSANS 阅读(1580) 评论(1) 推荐(0) 编辑
摘要: This is an interactive problem. Yui is a girl who enjoys playing Mahjong. She has a mysterious set which consists of tiles (this set can be empty). Ea 阅读全文
posted @ 2020-04-16 16:25 XXXSANS 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 发现typedef long long ll; 也可以写成using ll=long long; 类比就还有 using pi=pair<int,int>; using vi=vc<int>; using uint=unsigned; using ull=unsigned long long; c+ 阅读全文
posted @ 2020-04-16 16:22 XXXSANS 阅读(1206) 评论(0) 推荐(0) 编辑
摘要: Kaavi, the mysterious fortune teller, deeply believes that one's fate is inevitable and unavoidable. Of course, she makes her living by predicting oth 阅读全文
posted @ 2020-04-16 15:32 XXXSANS 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 语言是没有优劣之分的,只是特性不同,但使用他们的人是有优劣(我)之分的。 ——鲁迅(误 什么时候我也去学学传说中的lisp ○| ̄|_ 阅读全文
posted @ 2020-04-16 14:56 XXXSANS 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 在C++ 98 中,auto 的作用是让变量成为自动变量(拥有自动的生命周期),但是该作用是多余的,变量默认拥有自动的生命周期,在C++ 11 中,已经删除了该用法,取而代之的作用是:自动推断变量的类型。 0.代替冗长复杂,变量使用范围专一的变量声明 std::vector<std::string> 阅读全文
posted @ 2020-04-16 14:39 XXXSANS 阅读(1624) 评论(0) 推荐(0) 编辑