水题
scorpio_j
时间见证成长
展开
-
hdu--1014 Uniform Generator
题目:hdu–1014Problem Description Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) = [seed(x) + STEP] % MODwhere ‘%’ is原创 2017-08-03 23:28:43 · 282 阅读 · 0 评论 -
hdu--6077 Time To Get Up
题目:hdu–6077这就是一个模拟题目,我代码写得很暴力:#include<iostream> #include<cstdio> using namespace std; char N[7][21];int jude(int n,int m){ int a=0,b=0,c=0,d=0,e=0,f=0,g=0; int k = 3,l=1+n; while(N[0][l++原创 2017-08-03 23:33:09 · 227 阅读 · 0 评论 -
hdu--2056(矩形面积交)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2056 题目大意就是,给出两个矩形的相对顶点的坐标。求出两个矩形相交的部分的面积。 代码:#include<cstdio> #include<iostream> using namespace std; int main(){ double x1,y1,x2,y2;//矩形1 double原创 2017-08-24 01:28:00 · 248 阅读 · 0 评论