码迷,mamicode.com
首页 >  
搜索关键字:hdoj matrix    ( 6780个结果
android ImageView scaleType属性
使用ImageView时经常会用到scaleType属性,如: scaleType属性的各个值总是记不住之间的区别。今天找点时间总结了一下:scaleType的属性值有:matrix fitXY fitStart fitCenter fitEnd center centerCrop centerI....
分类:移动开发   时间:2014-07-16 22:58:00    阅读次数:248
hdoj 1288 Hat's Tea
Hat's TeaTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1139Accepted Submission(s): 238Problem De...
分类:其他好文   时间:2014-07-16 20:59:28    阅读次数:199
C语言 解决迷宫问题练习
利用C语言来解决类似迷宫的问题,下面例子分别用两种方法来解决![Problem]There is a maze as shown in the diagram below. In the maze in the form of a 100*100 matrix, the white backgrou...
分类:编程语言   时间:2014-07-13 10:07:16    阅读次数:285
ACdream: Sum
Sum Time Limit: 2000/1000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others) SubmitStatisticNext Problem Problem Description You are given an N*N digit matrix and you can get seve...
分类:其他好文   时间:2014-07-12 22:17:10    阅读次数:236
ACdream原创群赛(16) J
Sum Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description You are given an N*N digit matrix and you can get several horizontal o...
分类:其他好文   时间:2014-07-12 21:17:15    阅读次数:182
ACdream 1139(Sum-逆元)
J - Sum Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description You are given an N*N digit matrix and you can get several horizont...
分类:其他好文   时间:2014-07-12 20:26:54    阅读次数:269
poj 2155 二维树状数组
http://poj.org/problem?id=2155MatrixTime Limit:3000MSMemory Limit:65536KTotal Submissions:17721Accepted:6653DescriptionGiven an N*N matrix A, whose el...
分类:其他好文   时间:2014-07-12 15:09:54    阅读次数:201
hdoj 1053 Entropy(用哈夫曼编码)优先队列
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1053讲解: 题意:给定一个字符串,根据哈夫曼编码求出最短长度,并求出比值。 思路:就是哈夫曼编码。把单个字符出现次数作为权值。AC代码: 1 #include 2 #include 3 #inc...
分类:其他好文   时间:2014-07-11 21:19:50    阅读次数:277
Android中实现Gallery 点击放大
图片放大的思路: 第一、可以通过Matrix对象来变换图像,在选择的时候放大,在失去焦点的时候,缩小到原来的大小。double scale = 1.2;int width = bm.getWidth();int height = bm.getHeight();Log.i("size:", wi...
分类:移动开发   时间:2014-07-09 16:35:13    阅读次数:234
Cracking the Coding Interview Q1.6
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th...
分类:其他好文   时间:2014-07-08 22:06:25    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!