2096专题

【ACM】----杭电OJ 2096

小明的A+B 点击查看题目 小明A+B Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 28870    Accepted Submission(s): 13740 Problem Description

hdu-2096-小明A+B

#include<stdio.h> int main() { int s; scanf("%d",&s); while(s--) { int a,b; scanf("%d%d",&a,&b); a%=100; b%=100; printf("%d\n",(a+b)%100); } return 0; }

poj 2096 概率dp

http://poj.org/problem?id=2096 G++ WA  C++ AC 题解看这个吧:我没看懂题目,所以找的题解翻译:http://blog.csdn.net/morgan_xww/article/details/6774708 但是题解里感觉有一点写的不好---初始化应该有两部分:1、dp[s][n]=0.0,以及dp[s+1][j]=0.0  上面那个博客里没有初始化

poj 2096 Collecting Bugs (期望)

某个系统中有n个子系统和m个bug类型,该系统每天会出现一个bug (属于某个子系统和某个bug类型),bug的类型是等概率的,bug也是等概率地出现在每个子系统的。问所有子系统都出现bug且所有的bug类型都出现的期望天数。 Input Input file contains two integer numbers, n and s (0 < n, s <= 1 000). Output

[BZOJ 2096][Poi2010]Pilots:单调队列

点击这里查看原题 维护两个单调队列,一个递增,一个递减。 /*User:SmallLanguage:C++Problem No.:2096*/#include<bits/stdc++.h>#define ll long long#define inf 999999999using namespace std;const int M=3e6+5;int lx,rx,mx[M]

HDOJ--2096

小明A+B Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 33856    Accepted Submission(s): 15969 Problem Description 小明今年3岁了, 现在他已经能够认识1