1. 串行乘法器两个N位二进制数x、y的乘积用简单的方法计算就是利用移位操作来实现。module multi_CX(clk, x, y, result); input clk; input [7:0] x, y; output [15:0] result; reg [...
分类:
其他好文 时间:
2014-08-12 13:27:54
阅读次数:
172
我们需要把一块石头平稳的从地板上拿起来。石头的底面是多边形且各个部分的高度都一样,我们需要找出石头的重心。input测试案例 T;每组第一行给出N,表示定点数。接下来N行,每行连个数,表示坐标。定点按顺时针或逆时针给出。output 重心坐标。两个数中间一个空格,每个数保留两位小数。思路 把多变.....
分类:
其他好文 时间:
2014-08-12 13:06:44
阅读次数:
188
Problem Description
欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个图,问是否存在欧拉回路?
Input
测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是节点数N ( 1
束。
Output
每个测试用例的输出占一行,若欧拉回路存在则输出1,否则输出0。
...
分类:
其他好文 时间:
2014-08-12 10:24:03
阅读次数:
164
把N个建筑正投影到一个竖直平面上,给出N个建筑的左右坐标值和高度,计算阴影部分的面积。input 第一行建筑物的个数,接下来N行,每行给出三个数, 左右坐标值 和高度。其中1,r,h《=十亿.output 面积。 1 #include"iostream" 2 #include"cstdio" 3 ....
分类:
其他好文 时间:
2014-08-12 10:03:13
阅读次数:
258
一、编写匿名块并执行前文中介绍了PL/SQL的几种块的类型,其中匿名块是一种即时创建即时执行的块,下面使用sql*plus来演示一下如何创建一个匿名块:SQL>showuser--显示当前用户
USERis"HR"SQL>1DECLARE
2v_fnameVARCHAR2(20);
--DECLARE部分,后文中将详解命名规则
3BEGI..
分类:
数据库 时间:
2014-08-12 03:31:04
阅读次数:
412
题意:给你两字符串s1,s2,用最短的字符串表示他们(公共字串输出一次)。
Sample Input
apple peach
ananas banana
pear peach
Sample Output
appleach
bananas
pearch
dp[i][j] : 第一个字符串的前 i 个 ,和第二个字符串的前 j 个最...
分类:
其他好文 时间:
2014-08-11 21:24:02
阅读次数:
264
Description
Problem H
Counting Rectangles
Input: Standard Input
Output:Standard Output
Time Limit: 3Seconds
Given n points on the XY plane, count how many regular rectanglesare formed. A...
分类:
其他好文 时间:
2014-08-10 18:49:00
阅读次数:
268
Description
Problem A
Expression Bracketing
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Inthis problem you will have to find in how many ways
...
分类:
其他好文 时间:
2014-08-10 15:47:00
阅读次数:
247
Description
Problem D
The Grand Dinner
Input: standard input
Output: standard output
Time Limit: 15 seconds
Memory Limit: 32 MB
Each team participating in this year?s ACM World Finals cont...
分类:
其他好文 时间:
2014-08-10 13:02:20
阅读次数:
274
Description
Problem D
The Book-shelver’s Problem
Input: standard input
Output: standard output
Time Limit: 5 seconds
Memory Limit: 32 MB
You are given a collection of books, which must...
分类:
其他好文 时间:
2014-08-10 10:24:30
阅读次数:
317