摘要: 本篇算是学习c++有关类的知识的一些易错点吧..... 并不是特别详细,以后会更新吧.... 几点并不关于类的东西 1.函数模板,用虚拟类型来实现模板的功能 2.关于函数默认的参数值要放到最右边 3.内置函数 函数最左边加上inline(我觉得没啥用),规模很小的函数才用 4.字符串 sizeof( 阅读全文
posted @ 2018-10-13 23:29 踩在浪花上 阅读(8734) 评论(0) 推荐(0) 编辑
摘要: http://47.93.252.151/problem.php?id=1150 1150: 找面码 题目描述 超和平Busters里的面码在这个城市里迷路了,仁太特别着急,面码很害怕一个人,所以仁太想快一点到达面码的身边,现在仁太手上只有一张地图,地图上标明了m条街道,连接着n个区 每条路都会有一 阅读全文
posted @ 2018-08-30 15:53 踩在浪花上 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 题目描述 http://47.93.252.151/problem.php?id=1148 《我的妹妹哪有这么可爱!》中的女主叫做高坂桐乃,高坂家的幺女,外表出众、成绩优秀、运动万能的少女,而且还兼职流行杂志的专属模特。阳光的外表下却有着特别的兴趣,是个在意周围眼光的御宅族,喜欢妹系的成人游戏和动梅 阅读全文
posted @ 2018-08-30 09:56 踩在浪花上 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Girls and Boys Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13762 Accepted Submission(s): 64 阅读全文
posted @ 2018-08-28 16:58 踩在浪花上 阅读(99) 评论(0) 推荐(0) 编辑
摘要: YJJ's Salesman Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1258 Accepted Submission(s): 445 P 阅读全文
posted @ 2018-08-27 15:16 踩在浪花上 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Problem Description The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading pric 阅读全文
posted @ 2018-08-27 10:10 踩在浪花上 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 今天第一次三个人一起组队打比赛,打完后体验效果极差。还是自己太菜了…… 尽管还是写了三道,但写完后还是感觉难受,因为自己太弱了,突然间就特别渴望力量,也突然觉得自己是那么的无能为力。。 但这场比赛我也是十分感谢的,因为我知道,改变一个人是十分不容易的 一个人,只有经历了重大的打击或者挫折后,他才会下 阅读全文
posted @ 2018-08-26 00:16 踩在浪花上 阅读(342) 评论(0) 推荐(1) 编辑
摘要: #include const int inf=0x3f3f3f3f; const int maxn=1e5+5; struct edge{ int u,v;//两个点 int w; //权值 Edge(int _u = 0, int _v = 0, int _w = 0): u(_u), v(_v), w(_w) {} }; int dis[maxn];//松... 阅读全文
posted @ 2018-08-25 09:12 踩在浪花上 阅读(427) 评论(0) 推荐(0) 编辑
摘要: Find the result of the following code: long long pairsFormLCM( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) for( int j = i; j <= n; j++  阅读全文
posted @ 2018-08-22 10:20 踩在浪花上 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Longge is good at mathematics and he likes to think about hard mathematical problems which will be solved by some graceful algorithms. Now a problem c 阅读全文
posted @ 2018-08-22 09:53 踩在浪花上 阅读(209) 评论(0) 推荐(0) 编辑