HGOI7 11集訓題解

2021-08-21 09:18:44 字數 1955 閱讀 4688

首先宣告:由於今天一道題都沒有做出來…第一題只騙了30分(真的是題目太難…orz)所以以下的題目標程都是大佬提供的…

【題目描述】

#include 

#include

#include

#include

#include

#define n 100100

using

namespace

std;

int n,k;

double newtag;

double xx[n];

double ans;

double y;

double get_dis(int l)

double dis[n];

double to[n];

double ca1(int l,int r)

double ca2(int l,int r)

int main()

scanf("%lf",&y);

newtag=xx[k];

sort(xx+1,xx+n+1);

if(k==n+1)

else

printf("%.10lf\n",ans);

}return

0;}

【題目描述】

#include 

#include

#include

#include

#include

#include

using

namespace

std;

void fff()

const

int maxn=100001;

int n;

map m[maxn];

int f[maxn],s[maxn],p[maxn],cnt=0,z;

int main()

if(f[i]>f[m[l+c][r]])}}

while (z)

printf("%d\n",cnt);

while (cnt--)

return

0;}

【題目描述】 s

=s1+

t[1,

x]+s

2+t[

x+1,

n−x]

+s3+

t[n−

x+1,

n]s =s

1+t[

1,x]

+s2+

t[x+

1,n−

x]+s

3+t[

n−x+

1,n]

/**

#include

#include

#include

#include

using namespace std;

int n,i,j,k,f[100011],g[100011],dl[100011],m[100011],s,e,mid,ans;

unsigned hl[100011],hr[100011],pow[100011];

char c[100011];

unsigned hash(int

s,int e)

int calc(int

x)int main()

f[i]=s;

}s=1;

e=0;

for (i=1;i<=n;i++)

for (i=1;i<=n;i++)

for (i=1;i<=n;i++)

ans=max(ans,calc(i));

for (i=1;i<=n;i++)

if (ans==calc(i))

return

0;}

HGOI7 7集訓題解

今天這把題有點簡單,除了第二題數學方法沒想到之外,剩下的250草草收場。題目描述 include include include include include include include using namespace std void fff const int maxn 55 int be...

HGOI7 10集訓題解

今天開局狀態不行.noip2013day2的題.模擬賽輸入輸出打錯了 w w 在devc 下真的看不出來好嘛 然後果斷地爆了個零。題目描述 include include include include include using namespace std void fff const int m...

HGOI7 12集訓題解

講真今天又是cf的題,而且還難得一匹 又和昨天一樣爆零orz。我就是cf的搬運工 今天還是沒有表情包orz 題目描述 if a j 1 if dp l r a j 1 dfs a j 1 r include include include include include using namespac...