/*开始 初始CSS模板 开始*/ body, div, address, blockquote, iframe, ul, ol, dl, dt, dd, li, dl, h1, h2, h3, h4, h5, h6, p, pre, table, caption, th, t...
分类:
Web程序 时间:
2014-07-09 18:34:38
阅读次数:
241
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
The Lost House
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 2140
Accepted: 886
Description
One day a snail climbed up to a big tree and finally came to th...
分类:
其他好文 时间:
2014-07-08 18:08:00
阅读次数:
267
JavaScript通过ID和name设置样式
1、说明
(1)根据所提供的元素的id值,返回对该元素的引用或节点
document.getElementById("tr_th")
(2)根据参数中的标记,返回对一组元素的引用或节点
document.getElementsByTagName("td")
2、实现源码
JavaScript通过ID和...
分类:
编程语言 时间:
2014-07-08 17:16:41
阅读次数:
196
Cake
Time Limit: 1 Second
Memory Limit: 32768 KB
You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for th...
分类:
其他好文 时间:
2014-07-08 15:36:15
阅读次数:
298
一、设置好irtualBox载入光盘镜像运行,选择第一项,图形安装。二、然后出现检测内存,直接跳过。三、语言选择选择Chinese(Simplified)简体中文四、选择键盘格式,一般选用美式键盘。us五、时区选择,中国人都选择中国,但只有上海,勉强选下吧。六、输入密码,正常输入,密..
分类:
系统相关 时间:
2014-07-08 09:18:56
阅读次数:
322
更改存储过程的时候,在SQL中出现了 “无法解决 equal to 操作的排序规则冲突”错误,网上搜之,发现是表之间元素创建时排序规则不同(一个是collate Chinese_PRC_CI_AI_WS,一个为COLLATE SQL_Latin1_General_CP1_CI_AS)COLLATE ...
分类:
数据库 时间:
2014-07-06 20:32:59
阅读次数:
402
Problem DescriptionI think that you might have played the traditional Chinese ring game: The Chinese Linking Rings (here we call its nickname Jiulianh...
分类:
其他好文 时间:
2014-07-06 17:06:04
阅读次数:
293
;; Fermat's Little Theorem:
;; If N is a prime number and A is any positive integer less
;; than N, then A raised to the N-th power is congruent to A modulo N
;; Two numbers are said to be congruent...
分类:
其他好文 时间:
2014-07-06 09:05:22
阅读次数:
158
题目链接:uva 10710 - Chinese Shuffle
题目大意:给出n张牌,按照顺序排列好,进行n-1次完美洗牌,问是否可以变成原来德序列。
解题思路:根据完美洗牌的性质,于是第x张牌经过p次后德位置有x?2p,于是只需要证明第1张牌最后是否在远处即可。
#include
#include
typedef long long ll;
ll pow_mod(ll a...
分类:
其他好文 时间:
2014-07-04 07:45:10
阅读次数:
350