Gravatar
┭┮﹏┭┮
积分:4233
提交:877 / 1896
$\mathcal{O}(8n\log{n})$。

题目 4023 硝华流焰
2024-09-30 21:56:03
Gravatar
1nclude
积分:326
提交:159 / 584
怎么记搜跟暴力一样慢

题目 4022 批发市场
2024-09-29 23:32:15
Gravatar
lgy
积分:33
提交:16 / 80
#include<iostream>
#include<cstdio>
using namespace std;
int f(int x){
}
int j(int a,int b,int c)
{
int o=0;
float e=b*b-4*a*c;
if(e<0){
cout<<"NO"<<endl;
return 0;
}
for(int i=0;i<=e;i++)
if(i*i==e){
o=1;
e=i;break;
}
float x1=(e-b)/(2*a)*1.0;
float x2=(-e-b)/(2*a)*1.0;
int x3=(-e-b)/(2*a);
int x4=(e-b)/(2*a);
if(x1<x2){
if(x2!=x3)f(x2);
else
cout<<x2<<endl;
}
}
int main()
{
//freopen("uqe.in","r",stdin);
//freopen("uqe.out","w",stdout);
long long q,w;
cin>>q>>w;
in

题目 4016 [NOI 2024]分数
2024-09-28 17:40:29
Gravatar
┭┮﹏┭┮
积分:4233
提交:877 / 1896

Gravatar
lgy
积分:33
提交:16 / 80
#include<iostream>
using namespace std;
int main()
{
//freopen("road.in","r",stdin);
//freopen("road.out","w",stdout);
long long n,d;
long long k,h=0,i,l=0,m=0,v=0,y=0,s=1,s1=1;
cin>>n>>d;
int a[n],b[(n+1)];
for(i=1;i<n;i++)
cin>>a[i];
for(i=1;i<=n;i++)
cin>>b[i];
while(y==0){
h=0;
for(i=(s+1);i<=n;i++){
if((b[i]<b[s])||(i==n)){
k=(i-s);break;
}
}
for(i=1;i<=k;i++){
h=h+a[i];
s++;
}
h-=v;
cout<<"h="<<h<<' ';
l=h/d;
if(h%d!=0)l++;
cout<<"l="<<l<<' ';
v+=l*d;
m+=l*b[s1];

题目 4017 [NOI 2024]登山
2024-09-22 18:00:44
Gravatar
music
积分:30
提交:24 / 34
回复 @father :
????????

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:07:02
Gravatar
music
积分:30
提交:24 / 34
回复 @haoshuai :
不似泥萌

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:06:45
Gravatar
haoshuai
积分:16
提交:12 / 35
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:53
Gravatar
haoshuai
积分:16
提交:12 / 35
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:50
Gravatar
haoshuai
积分:16
提交:12 / 35
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:44
Gravatar
haoshuai
积分:16
提交:12 / 35
回复 @father :
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahaha

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:37
Gravatar
father
积分:79
提交:35 / 85
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:03:19
Gravatar
haoshuai
积分:16
提交:12 / 35
三年oi一场空,不开long long三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:03:08
Gravatar
haoshuai
积分:16
提交:12 / 35
malegebi

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:01:47
Gravatar
haoshuai
积分:16
提交:12 / 35
回复 @father :
wish today the tei niang

题目 3927 [CSP 2023J]小苹果
2024-09-22 11:00:01
Gravatar
father
积分:79
提交:35 / 85
回复 @haoshuai :
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha

题目 3927 [CSP 2023J]小苹果
2024-09-22 10:58:21
Gravatar
haoshuai
积分:16
提交:12 / 35
三年oi一场空,不开long long 见祖宗

题目 3927 [CSP 2023J]小苹果
2024-09-22 10:56:44
Gravatar
music
积分:30
提交:24 / 34

Gravatar
GS53
积分:37
提交:16 / 58
超时。。。

Gravatar
AeeE5x
积分:306
提交:102 / 252
第一次徒手搓出来一棵线段树)
感觉自己已经差不多理解线段树了)