- 博客(6)
- 收藏
- 关注
原创 codeforces 400C Inna and Huge Candy Matrix
题目链接:http://codeforces.com/problemset/problem/400/C题目大意:给出一个n*m的矩阵,其中有p个格子里边有糖果,知道这p个格子现在的位置,现在要将这个n*m的矩阵顺时针旋转x次,水平翻转y次,逆时针旋转z次,最后输出原来的p个有糖果的格子现在的坐标解题思路:顺时针旋转一次(x,y)--->(y,n+1-x)顺时针旋转二次(x,y)
2015-10-31 16:07:56 357
原创 codeforces 400B Inna and New Matrix of Candies
B. Inna and New Matrix of CandiesInna likes sweets and a game called the "Candy Matrix". Today, she came up with the new game "Candy Matrix 2: Reload".The field for the new game is a rectangle
2015-10-31 16:03:29 291
原创 CodeForces 400A Inna and Choose Options
A. Inna and Choose Options time limit per test 1 second
2015-10-31 15:57:13 290
原创 hdu 3974 线段树重新排序区间更新
Assign the task Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionThere is a
2015-10-30 14:04:58 460
原创 hdu 1540 线段树区间合并
Tunnel Warfare Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description
2015-10-18 17:39:34 248
原创 hdu 5495 LCS (bestcoder #58 1002)
LCSTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionYou are given two sequence {a1,a2,...,an} and {b1,b2,...,bn}. Both
2015-10-04 10:50:35 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人