摘要: 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 阅读(240) 评论(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 阅读(1851) 评论(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 阅读(314) 评论(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 阅读(1284) 评论(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 阅读(1116) 评论(0) 推荐(0)
摘要: 语言是没有优劣之分的,只是特性不同,但使用他们的人是有优劣(我)之分的。 ——鲁迅(误 什么时候我也去学学传说中的lisp ○| ̄|_ 阅读全文
posted @ 2020-04-16 14:56 XXXSANS 阅读(199) 评论(0) 推荐(0)
摘要: 在C++ 98 中,auto 的作用是让变量成为自动变量(拥有自动的生命周期),但是该作用是多余的,变量默认拥有自动的生命周期,在C++ 11 中,已经删除了该用法,取而代之的作用是:自动推断变量的类型。 0.代替冗长复杂,变量使用范围专一的变量声明 std::vector<std::string> 阅读全文
posted @ 2020-04-16 14:39 XXXSANS 阅读(1686) 评论(0) 推荐(0)
摘要: 1 int read() { char c=getchar();while(!isdigit(c)) c=getchar(); int num=0;while(isdigit(c)) num=num*10+c-'0',c=getchar(); return num; } inline int rea 阅读全文
posted @ 2020-04-16 14:18 XXXSANS 阅读(183) 评论(0) 推荐(0)
摘要: Xenia is a girl being born a noble. Due to the inflexibility and harshness of her family, Xenia has to find some ways to amuse herself. snoop dooogg~~ 阅读全文
posted @ 2020-04-16 13:58 XXXSANS 阅读(259) 评论(0) 推荐(0)
摘要: Writing light novels is the most important thing in Linova's life. Last night, Linova dreamed about a fantastic kingdom. She began to write a light no 阅读全文
posted @ 2020-04-16 09:13 XXXSANS 阅读(289) 评论(0) 推荐(0)