#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long long
using namespace std;
const int MAXN = 1000000 + 10;
const int MOD = 998244353;
LL pow_mod...
分类:
其他好文 时间:
2015-04-17 20:34:28
阅读次数:
147
题目大意:有三个骰子,分别有k1,k2,k3个面。每次掷骰子,如果三个面分别为a,b,c则分数置0,否则加上三个骰子的分数之和。当分数大于n时结束。求游戏的期望步数。初始分数为0分析设E[i]表示现在分数为i,到结束游戏所要掷骰子的次数的期望值。显然E[>n]=0;E[0]即为所求答案;E[i]=∑...
分类:
其他好文 时间:
2015-04-17 15:37:29
阅读次数:
152
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3600
题面:
Taxi Fare
Time Limit: 2 Seconds Memory Limit: 65536 KB
Last September, Hangzhou raised the taxi fare...
分类:
其他好文 时间:
2015-04-17 11:42:57
阅读次数:
132
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3610
题面:
Yet Another Story of Rock-paper-scissors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Akihisa and Hi...
分类:
其他好文 时间:
2015-04-17 11:42:00
阅读次数:
148
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3609
题面:
Modular Inverse
Time Limit: 2 Seconds Memory Limit: 65536 KB
The modular modular multiplicative inve...
分类:
其他好文 时间:
2015-04-17 11:41:43
阅读次数:
110
Sexagenary Cycle
Time Limit: 2000MS
Memory Limit: 65536KB
64bit IO Format: %lld & %llu
Submit Status
Description
The Chinese sexagenary cycle, also known as the stems...
分类:
其他好文 时间:
2015-04-17 11:35:51
阅读次数:
117
X -Watashi's BGTime Limit:3000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusPracticeZOJ 3631Appoint description:DescriptionWatashi is t...
分类:
其他好文 时间:
2015-04-17 01:05:33
阅读次数:
134
Shoot the BulletTime Limit:2 Seconds Memory Limit:32768 KB Special JudgeGensokyois a world which exists quietly beside ours, separated by a mystical b...
分类:
编程语言 时间:
2015-04-17 01:00:00
阅读次数:
192
W -Unrequited LoveTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusPracticeZOJ 3310Appoint description:DescriptionOwen had ...
分类:
其他好文 时间:
2015-04-16 23:44:52
阅读次数:
142