![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM_水题
文章平均质量分 80
张思瑶126
If you think you can , you can !
不怕千万人阻挡,只怕自己投降 !
展开
-
数学——前缀积和后缀积
Description:给出数列A1,A2,...,AN,并设Bi = (A1 * A2 * A3 ... AN) / Ai mod (109 + 7)现要求把所有的Bi 算出来Input:输入包含多组测试数据。对于每组数据,第1 行,1 个整数N(1 ≤N ≤100,000), 表示数列的长度。第2行,N 个整数A1,A2,...,AN(1 ≤A原创 2014-09-11 19:59:41 · 1170 阅读 · 0 评论 -
HDU 5082 Love
LoveTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 763 Accepted Submission(s): 455Problem DescriptionThere is a Love country原创 2015-08-21 10:30:02 · 623 阅读 · 0 评论 -
NBUT 1219 Time
[1219] Time时间限制: 1000 ms 内存限制: 131072 K问题描述Digital clock use 4 digits to express time, each digit is described by 3*3 characters (including”|”,”_”and” “).now given the current time, plea原创 2015-08-18 14:53:13 · 594 阅读 · 0 评论 -
NBUT 1217 Dinner
[1217] Dinner时间限制: 1000 ms 内存限制: 32768 K问题描述Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided to invite all to have one meal. As bowl, kni原创 2015-08-18 14:16:48 · 628 阅读 · 0 评论 -
Tyvj P1082 找朋友
一开始想到的是直接排序,结果超时了,代码如下:#include #include #include #include #include #include #include using namespace std;const int maxn=10000+10;int n,shu[maxn];char ren[maxn][50],s[50];int main(){原创 2015-07-24 13:06:44 · 622 阅读 · 0 评论 -
HDU 1014 Uniform Generator
Uniform GeneratorComputer 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 the modulus operator.原创 2015-08-16 00:09:51 · 854 阅读 · 0 评论 -
POJ 3620 Avoid The Lakes
//很水的dfs#include #include #include #include using namespace std;const int maxn=100+10;int mx[maxn][maxn],m,n,k,cnt;int dir[4][2]= {{-1,0},{0,-1},{1,0},{0,1}}; //四个方向 int dfs(int原创 2015-07-20 23:11:37 · 436 阅读 · 0 评论 -
NBUT 1223 Friends number
[1223] Friends number时间限制: 1000 ms 内存限制: 131072 K问题描述Paula and Tai are couple. There are many stories between them. The day Paula left by airplane, Tai send one message to telephone 22原创 2015-08-24 15:01:27 · 766 阅读 · 0 评论 -
NBUT 1452 Ezreal
[1452] Ezreal时间限制: 1000 ms 内存限制: 65535 K问题描述There are a LCD (Liquid Crystal Display) on Ezreal's arm. The LCD is composed of liquid crystal, and the LCD is 16 lines and 48 rows. Ho原创 2015-08-22 23:40:13 · 656 阅读 · 0 评论 -
Stick
Description:Anthony has collected a large amount of sticks for manufacturing chopsticks. In order tosimplify his job, he wants to fetch two equal-length sticks for machining at a time. After check原创 2014-09-11 19:06:05 · 742 阅读 · 0 评论 -
codeforce 560 A Currency System in Geraldion
题目链接:http://codeforces.com/problemset/problem/560/AA. Currency System in Geraldiontime limit per test2 secondsmemory limit per test256 megabytesinputstandar原创 2015-11-22 19:57:11 · 579 阅读 · 0 评论