跳到正文

个人记录

whk学时表

int223约 8 分钟
原文

这是 2026年7月29日 存档的第 2 版,不是当前版本。查看当前版本

文章信息与版本

Rating 计算:

C++
#include<iostream>
#include<cmath>
#include<ctime>
#include<cstdlib>
using namespace std;
double inf,w,x[100005];
int n;
double F(int n){
	if(!inf&&n==1e7){
		double r1,r2;
		r1=r2=0;
		for(int i=1;i<=n;i++){
			r1=(r1*0.81+0.81);
			r2=(r2*0.9+0.9);
		}
		r1=sqrt(r1);
		return inf=r1/r2;
	}
	else if(n==1e7){
		return inf;
	}
	else{
		double r1,r2;
		r1=r2=0;
		for(int i=1;i<=n;i++){
			r1=(r1*0.81+0.81);
			r2=(r2*0.9+0.9);
		}
		r1=sqrt(r1);
		return r1/r2;
	}
}
double f2(int n){
	return (F(n)-F(1e7))/(F(1)-F(1e7))*1200.0;
}
double g(double x){
	return pow(2.0,x/800.0);
}
double gf(double x){
	return log2(x)*800.0;
}
int main(){
	cin>>n;
	int las=4000;
	srand(time(0));
	for(int i=1;i<=n;i++){
	//	x[i]=rand()%(las-las/2+1)+1+las/2+rand()%(las/5+1);
	//	x[i]=min(x[i],(double)4000);
		las=x[i];
	}
	for(int i=1;i<=n;i++){
		cin>>x[i];
		double r1,r2;
		r1=r2=0;
		for(int j=1;j<=i;j++){
			int w=i-j+1;
			r1+=g(x[w]-f2(w))*pow(0.9,j);
			r2+=pow(0.9,j);
		} 
		cout<<gf(r1/r2)<<endl;
	}
	return 0;
} 
日期学时perfratingdiff
2026.07.172026.07.170∘18′27′′0^\circ 18'27''129129−1071-1071
2026.07.182026.07.181∘5′9′′1^\circ 5'9''456456−596-596+475+475
2026.07.192026.07.190∘2′0′′0^\circ 2'0''1414−571-571+25+25
2026.07.202026.07.200∘31′24′′0^\circ 31'24''220220−453-453+118+118
2026.07.212026.07.211∘40′44′′1^\circ 40'44''705705−196-196+257+257
2026.07.222026.07.222∘11′5′′2^\circ 11'5''9189183636+232+232
2026.07.232026.07.231∘1′57′′1^\circ 1'57''4344346767+31+31
2026.07.242026.07.241∘29′57′′1^\circ 29'57''630630138138+71+71
2026.07.272026.07.271∘52′51′′1^\circ 52'51''790790229229+91+91
2026.07.282026.07.281∘28′14′′1^\circ 28'14''618618268268+39+39