- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 Codeforces Round #340 (Div. 2) D. Polyline
D. Polyline time limit per test memory limit per test input output Input Output standard outputstandard input256 megabytes1 second There are three points marked on the coordinate plane. Th
2016-01-29 14:40:03 394
原创 C. Watering Flowers 构造
C. Watering Flowers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A flowerbed has many flowers and two fo
2016-01-29 14:31:29 858
原创 Educational Codeforces Round 5 C. The Labyrinth
题目链接~~ 题意:求矩阵中’*’为阻塞,’.’为空,求每个阻塞块相邻的连通块有多少空块 如下: input 3 3 * . * . * . * . * output 3.3 .5. 3.3由于每个’*’都搜一次会超时,所以现将每个连通块都搜出来,并给每个‘.’所在的块标上块号,并记录每个块的‘.’数量。#include <cstdio> #include <cstring
2016-01-23 18:34:21 349
原创 Codeforces Round #339 (Div. 2) B. Gena's Code
题目链接~~ 题意是求队列的乘积,而n个数的队列中的数字至少有n-1个最多只有1个1的没有前导零的数,所以这个乘积结果只需记录结尾总共有多少零,以及不是只有1个1的数即可。由于位数可以达到10^10所以不能用大数。
2016-01-23 16:15:50 331
原创 Educational Codeforces Round 6 C. Pearls in a Row
题意:求一个数列中最多的“good segments” 的数量,只要一个区间有且仅有两个相同的元素就是“good segments”,还有就是区间长度尽可能长。
2016-01-23 16:02:00 228
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人