跳到正文

个人记录

200粉粉福

Amidst约 5 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 5 分钟
获赞
1

版本

  1. v1当前

200粉粉福:10自由问答+最新码风+头图一张

Part 1\texttt {Part 1}

Q1:\texttt {Q1:}

A1:\texttt {A1:}

Q2:\texttt {Q2:}

A2:\texttt {A2:}

Q3:\texttt {Q3:}

A3:\texttt {A3:}

Q4:\texttt {Q4:}

A4:\texttt {A4:}

Q5:\texttt {Q5:}

A5:\texttt {A5:}

Q6:\texttt {Q6:}

A6:\texttt {A6:}

Q7:\texttt {Q7:}

A7:\texttt {A7:}

Q8:\texttt {Q8:}

A8:\texttt {A8:}

Q9:\texttt {Q9:}

A9:\texttt {A9:}

Q10:\texttt {Q10:}

A10:\texttt {A10:}

Part 2\texttt {Part 2}

以下是未写完的 P7426 的代码:

C++
#include <bits/stdc++.h>
using namespace std;
int n,m;
map<string,int> _Mp;
struct STU
{
	char ch[15],ml,body;
	int spcl,lngmin,lngsec,lng,
		shine,bdy,bgn_jn,bgn_tst,
		bgn_shine,tmp,ttl,clss;
	void querask(int iid)
	{
		cin>>ch>>ml>>spcl;
		scanf("%d'%d\"",lngmin,lngsec);
		cin>>body>>bgn_tst>>clss;
		_Mp[ch]=iid;
		lngsec=lngmin*60+lngsec;
		if(ml=='M')
			lng=(lngsec<=750?20:
			    (lngsec<=780?18:
				(lngsec<=810?16:
				(lngsec<=840?14:
				(lngsec<=870?12:
				(lngsec<=910?10:
				(lngsec<=950? 8:
				(lngsec<=990? 6:
				(lngsec<=1030?4:
				(lngsec<=1120?2:
				(0)  ))))))))));
		else
			lng=(lngsec<=400?20:
			    (lngsec<=417?18:
				(lngsec<=434?16:
				(lngsec<=451?14:
				(lngsec<=470?12:
				(lngsec<=485?10:
				(lngsec<=500? 8:
				(lngsec<=515? 6:
				(lngsec<=530? 4:
				(lngsec<=540? 2:
				(0)  ))))))))));
		if(body=='P')
			bdy=10;
		else
			bdy=0;
		tmp=clss+bgn_shine;
		bgn_jn=(tmp>=18?5:
			   (tmp>=15?4:
			   (tmp>=12?3:
			   (tmp>=9? 2:
			   (tmp>=6? 1:
			   (0)  )))));
	}
}a[10005];
struct SUN
{
	int mnth,day,jl_s,step
		begin_h,begin_m,begin_s,
		end_h,end_m,end_s,
		stop_m,stop_s;
	char ch[15];
	void sunshine_run()
	{
		scanf("2017%2d%2d",&mnth,&dy);
		cin>>ch;
		scanf("%2d:%2d:%2d %2d:%2d:%2d %.2f %d'%d\" %d",
		&begin_h,&begin_m,&begin_s,&end_h,&end_m,&end_s,
		&jl_s,&stop_m,&stop_s,&step);
	}
}b[10005];
bool cmp(STU x,STU y)
{
	return x.ch<y.ch;
}
int main()
{
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
		a[i].querask(i);
	scanf("%d",&m);
	for(int i=1;i<=m;i++)
		sunshine_run();
	a[i].ttl=a[i].spcl+a[i].lng+a[i].shine+a[i].bdy+a[i].bgn_jn+a[i].bgn_tst;
	sort(a+1,a+1+n,cmp);
	for(int i=1;i<=n;i++)
	{
		cout<<a[i].ch<<" "<<a[i].ttl<<" ";
		string lvl=(a[i].ttl>=95? "A":
		           (a[i].ttl>=90?"A-":
				   (a[i].ttl>=85?"B+":
				   (a[i].ttl>=80? "B":
				   (a[i].ttl>=77?"B-":
				   (a[i].ttl>=73?"C+":
				   (a[i].ttl>=70? "C":
				   (a[i].ttl>=67?"C-":
				   (a[i].ttl>=63?"D+":
				   (a[i].ttl>=60? "D":
				   ("F")   ))))))))));
	}
}
原文