Gravatar
┭┮﹏┭┮
积分:4078
提交:868 / 1878
哈哈哈,$\mathcal{O}(n\log^2{n})$ 跑的飞快~~~

Gravatar
dustsans
积分:82
提交:51 / 117
题解,可以做参考(最基础的写法,本人技术不足,还写不出太高深的)

Gravatar
GS53
积分:37
提交:16 / 58
唯一AC的一道

题目 4034 罚站 AAAAAAAAAA
2024-10-23 20:58:21
Gravatar
健康铀
积分:1063
提交:212 / 557
题解
千分留念

Gravatar
薛誉喜欢刘玮彦
积分:14
提交:8 / 18
三年oi一场空,不开long long 见祖宗

题目 3778 [CSP 2022J]解密
2024-10-22 21:32:08
Gravatar
┭┮﹏┭┮
积分:4078
提交:868 / 1878
再写构造我死。

Gravatar
健康铀
积分:1063
提交:212 / 557
文件输入输出r打成w,260分谁给我补?我给你补个蛋

Gravatar
lgy
积分:33
提交:16 / 80
#include<bits/stdc++.h>
using namespace std;
int n,w,r;
long long a[100001]={0};
int px(int i){
int k,t;
for(int l=1;l<=i;l++){
k=l;
for(int j=l+1;j<=i;j++){
if(a[j]>a[k])k=j;
if(k!=l){
t=a[l];
a[l]=a[k];
a[k]=t;
}
}
}
}
int main()
{
freopen("csp2020pj_live.in","r",stdin);
freopen("csp2020pj_live.out","w",stdout);
cin>>n>>w;
for(int i=1;i<=n;i++){
cin>>a[i];
r=i*w/100;
if(r==0)r++;
px(i);
cout<<a[r]<<" ";
}
}

Gravatar
qyd
积分:685
提交:218 / 732
Kruskal没过,Prim过了

Gravatar
回归运动
积分:59
提交:47 / 125
#include<bits/stdc++.h>
int main() {
int T,a[3];
scanf("%d",&T);
while(T--) {
scanf("%d%d%d",a,a+1,a+2),std::sort(a,a+3);
printf("%d\n",(a[0]==0?(a[1]==0?0:(a[1]==a[2]?1:2)):(a[0]+a[1]==a[2]||a[0]==a[1]||a[1]==a[2]?2:3)));
}
}

Gravatar
Embark
积分:17
提交:10 / 45
样例1有问题,我样例一不过但是测试AC了

Gravatar
awa
积分:10
提交:12 / 46
终于对了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

题目 3777 [CSP 2022J]乘方
2024-10-17 21:55:29
Gravatar
健康铀
积分:1063
提交:212 / 557
挑战最易懂代码

Gravatar
1nclude
积分:281
提交:137 / 497
scanf大法好

Gravatar
qyd
积分:685
提交:218 / 732
MST首题!!
数组开小了会EEEEE

题目 7 通信线路 AAAAAAAAAA
2024-10-16 22:01:58
Gravatar
sybyx
积分:14
提交:4 / 14
维尼修斯的果篮(维尼都2亿欧了no!!!)

Gravatar
花火
积分:288
提交:119 / 201
p

Gravatar
Embark
积分:17
提交:10 / 45
逆天半星第1题

Gravatar
darkMoon
积分:826
提交:65 / 180
st 表的代码看这里

Gravatar
qyd
积分:685
提交:218 / 732
DAG上DP首题qwq

题目 1243 嵌套矩形 AAAAAAAAAA
2024-10-15 16:32:00