摘要: time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string s, consisting of lowercas 阅读全文
posted @ 2016-10-09 12:37 Pic 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ■姚期智 我从事科学工作几十年,也认识了很多杰出的科学家。我自己觉得科学家的生涯很有收获,当科学家是一个非常好的体验,从中可以品尝到巨大的乐趣。 首先,我要谈一谈什么是科学家,科学家做什么样的事情。在此,我想引用大文豪萧伯纳在一个剧本里说的几句话:“有的人看到已经发生的事情,问‘为什么会这样’。我却 阅读全文
posted @ 2016-09-28 22:23 Pic 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 题目描述 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each n 阅读全文
posted @ 2016-09-21 20:54 Pic 阅读(166) 评论(0) 推荐(0) 编辑
摘要: unsigned int 0~4294967295 int 2147483648~2147483647 (21亿)(2 1e9) unsigned long 0~4294967295 (42亿) long 2147483648~2147483647 (21亿)(2 1e9) long long的最大 阅读全文
posted @ 2016-09-18 19:34 Pic 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Description As is known to all, the blooming time and duration varies between different kinds of flowers. Now there is a garden planted full of flower 阅读全文
posted @ 2016-09-17 22:06 Pic 阅读(138) 评论(0) 推荐(0) 编辑
摘要: ``` const int M; struct node{ int max; int sum; int left; int right; }tree[4*M];//线段树数组 int a[M];//原始数据数组 //*********************// void build(int id,int left,int right)//递归建树 { if... 阅读全文
posted @ 2016-09-12 22:30 Pic 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2016-09-11 22:02 Pic 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 大二已经过去两星期了。在大二开始的这段时间里,这一段时间,我的压力很大,一方面我在复习之前落下的数学知识,另一方面坚持ACM的学习。也因此我的生活轨迹变得特别规律,宿舍→ 教室→ 图书馆→ 教室→ 实验室→ 宿舍。压力很大,很忙碌。但有种说不出来的充实感。这才是我心目中的理想的大学生活。 从暑假的A 阅读全文
posted @ 2016-09-11 21:57 Pic 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 2016 [TOC] Description 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 Input 输入包含不超过 30 组数据。 每组数据包含两个整数 n,m (1≤n,m≤109). Outpu 阅读全文
posted @ 2016-09-03 21:03 Pic 阅读(353) 评论(0) 推荐(0) 编辑
摘要: ACM暑期集训总结报告 不知不觉,ACM暑期集训已经过去了一个月了(其实我还差几天才够一个月,因为最后几天要回家办助学贷款,所以没坚持到最后,当了个逃兵。。。。。[汗])也到了结束的时候。在这一个月中, 有压力,有感触,也有喜悦。收获了很多,反思了很多。 知识方面,这一个月中, 主要是看了DP的内容 阅读全文
posted @ 2016-08-29 13:31 Pic 阅读(323) 评论(0) 推荐(0) 编辑