Gravatar
健康铀
积分:1284
提交:230 / 604
数据范围1080不是1000,警钟长鸣

Gravatar
Embark
积分:17
提交:10 / 45
还是数学好,一招鲜吃遍天

题目 3778 [CSP 2022J]解密
2024-10-04 18:13:46
Gravatar
Embark
积分:17
提交:10 / 45
三年oi一场空,不开long long 见祖宗

Gravatar
2_16鸡扒拌面
积分:54
提交:25 / 65
没用二分的我5分钟得了50分:(

题目 3778 [CSP 2022J]解密
2024-10-03 20:53:26
Gravatar
fla
积分:2
提交:1 / 2
回复 @2_16鸡扒拌面 :
hhh

Gravatar
不知所云
积分:42
提交:17 / 160
#include<bits/stdc++.h>
using namespace std;
typedef long long op;
int main()
{
freopen("csp2022pj_pow.in","r",stdin);freopen("csp2022pj_pow.out","w",stdout);
op a,b;
cin>>a>>b;
if(pow(a,b)>1000000000)cout<<-1;
else cout<<(int)pow(a,b);
return 0;
}

题目 3777 [CSP 2022J]乘方
2024-10-02 21:44:15
Gravatar
┭┮﹏┭┮
积分:4441
提交:907 / 1937
这个傻逼的 [静态查错] 能力为 0

Gravatar
┭┮﹏┭┮
积分:4441
提交:907 / 1937
$\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
┭┮﹏┭┮
积分:4441
提交:907 / 1937

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