#include #include #include #include #include using namespace std; double expected(int n, int s, int t){//vector b){ int T=200000; int S=0; uniform_int_distribution distribution(1,s); mt19937_64 engine((unsigned int)time(NULL)^(getpid()<<16)); for(int I=0;It)cur=0; turn++; } S+=turn; } return S*1.0/T; } int main(){ int N; scanf("%d",&N); printf("%f\n",expected(1,6,N)); }