杂
文章平均质量分 82
utoppia
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sgu 160 Magic Multiplying Machine
160. Magic Multiplying Machine time limit per test: 1 sec. memory limit per test: 65536 KB input: standard input output: standard output Well known Las-Vegas casino "Big Jo" has recentl原创 2012-11-05 23:13:25 · 594 阅读 · 0 评论 -
HDU 1296
表达式求值,蛮有意思的,某年校赛就出这题了呢。。。 依然顺手。。。哈哈。。。就算退役了心依然不死呢。。。 #include #include #include #include using namespace std; int const nMax = 10100; #define sf scanf #define pf printf #define rep(i,n) for(in原创 2013-12-13 23:02:40 · 1098 阅读 · 0 评论 -
HDU 1027 Ignatius and the Princess II
全排列,next_permutation #include #include #include #include #include #include using namespace std; #define sf scanf #define pf printf #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define原创 2013-11-10 16:03:55 · 693 阅读 · 0 评论 -
Ural 1019. Line Painting
Ural 1019. Line Painting 直接离散化然后暴力染色。 注意离散化的时候在线段头尾都多插一点,否则很容易错。 #include #include #include #include #include using namespace std; #define nMax 20000 int n; char s[20]; struct Ask{ int a,b,原创 2013-08-23 16:00:48 · 918 阅读 · 1 评论 -
sgu 142 Keyword
142. Keyword time limit per test: 1 sec. memory limit per test: 16384 KB Kevin has inventeda new algorithm to crypt and decrypt messages, which he thinks is unbeatable.The algorithm uses a very原创 2012-11-15 23:15:09 · 505 阅读 · 0 评论 -
sgu 178 Golden chain
178. Golden chain time limit per test: 0.5 sec. memory limit per test: 4096 KB input: standard output: standard Peter arrived to the city and stayed in the hotel. He has no money but fe原创 2012-11-07 19:37:18 · 647 阅读 · 0 评论 -
sgu 186 The Chain
186. The Chain time limit per test: 0.5 sec. memory limit per test: 4096 KB input: standard input output: standard output Smith has N chains. Each chain is the sequence of successively原创 2012-11-06 22:31:26 · 726 阅读 · 0 评论 -
sgu 181 X-Sequence
181. X-Sequence time limit per test: 0.5 sec. memory limit per test: 4096 KB input: standard output: standard Let {xi} be the infinite sequence of integers: 1) x0 = A; 2) xi = (alpha原创 2012-11-06 20:46:44 · 461 阅读 · 0 评论 -
sgu 196 Matrix Multiplication
196. Matrix Multiplication time limit per test: 0.5 sec. memory limit per test: 65536 KB input: standard output: standard Let us consider an undirected graph G = which has N vertices a原创 2012-11-07 00:26:01 · 585 阅读 · 0 评论 -
sgu 126 Boxes
126. Boxes time limit per test: 0.5 sec. memory limit per test: 4096 KB There are two boxes. There are A balls in the first box, and B balls in the second box (0 < A + B < 2147483648). It is pos原创 2012-11-01 00:35:51 · 464 阅读 · 0 评论 -
sgu 114 Telecasting station
题目描述: 114. Telecasting station time limit per test: 0.5 sec. memory limit per test: 4096 KB Every city in Berland is situated on Ox axis. The government of the country decided to build ne原创 2012-10-26 10:31:12 · 534 阅读 · 0 评论 -
sgu 115 Calendar
题目描述: 115. Calendar time limit per test: 0.5 sec. memory limit per test: 4096 KB First year of new millenium is gone away. In commemoration of it write a program that finds the name of th原创 2012-10-26 10:52:48 · 431 阅读 · 0 评论 -
sgu 153 Playing with matches
153. Playing with matches time limit per test: 0.5 sec. memory limit per test: 4096 KB input: standard input output: standard output Little boy Petya plays a game with his friend. They原创 2012-11-04 23:05:10 · 451 阅读 · 0 评论 -
sgu 108 Self-numbers 2
题目描述: 108. Self-numbers 2 time limit per test: 1 sec. memory limit per test: 4096 KB In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For原创 2012-10-25 10:36:05 · 480 阅读 · 0 评论 -
sgu 133 Border
题目描述: 133. Border time limit per test: 0.5 sec. memory limit per test: 4096 KB Along the border betweenstates A and B there are N defence outposts. For everyoutpost k, the interval [Ak原创 2012-11-01 20:34:48 · 447 阅读 · 0 评论 -
sgu 135 Drawing Lines
题目描述: 135. Drawing Lines time limit per test: 0.5 sec. memory limit per test: 4096 KB Little Johnny likesto draw a lot. A few days ago he painted lots of straight lines on hissheet of pap原创 2012-11-01 22:24:37 · 515 阅读 · 0 评论 -
sgu 130 Circle
题目描述: 130. Circle time limit per test: 0.5 sec. memory limit per test: 4096 KB On a circle border there are 2k different points A1, A2, ..., A2k, located contiguously. These points connec原创 2012-11-01 14:58:04 · 532 阅读 · 0 评论 -
sgu 128 Snake
题目描述: 128. Snake time limit per test: 0.5 sec. memory limit per test: 4096 KB There are N points given by their coordinates on a plane. All coordinates (xi,yi) are integers in a range fro原创 2012-11-01 14:05:32 · 1180 阅读 · 0 评论
分享