头像

修勾啊

awa




离线:5天前


最近来访(510)
用户头像
不开longlong见祖宗
用户头像
lvsun
用户头像
永恒.
用户头像
你猜我是谁_0
用户头像
wateryear
用户头像
陈鑫伟
用户头像
straySheep.
用户头像
隗恬
用户头像
夜寐
用户头像
Link_Cut_Y
用户头像
acwing_8139
用户头像
星河万里ベ
用户头像
星殇
用户头像
Kijasss
用户头像
长夜未央
用户头像
ericf
用户头像
wsc6
用户头像
九月的街头
用户头像
ltzx_2022_maorx_1
用户头像
沫羽皓


好臭的样例
不做力
2350. 序列



新鲜事 原文

修勾啊
18天前
你们感觉怎样 我感觉我的分数像九转大肠 QAQ


分享 RP++

修勾啊
19天前

y总保我AK!!!

祝在座的各位RP++!



新鲜事 原文

修勾啊
1个月前
AC Editor 坏了怎么办 QAQ


活动打卡代码 AcWing 606. 平均数1

修勾啊
3个月前
#include<bits/stdc++.h>
using namespace std;
int main(){
    double a,b,c;
    cin>>a>>b;
    c=(a*3.5+b*7.5)/11;
    cout<<"MEDIA = "<<fixed<<setprecision(5)<<c;

    return 0;
}


活动打卡代码 AcWing 604. 圆的面积

修勾啊
3个月前
#include<bits/stdc++.h>
using namespace std;
int main(){
    double a,b;
    cin>>a;
    b=3.14159*a*a;
    cout<<"A="<<fixed<<setprecision(4)<<b;
}


活动打卡代码 AcWing 608. 差

修勾啊
3个月前
#include<bits/stdc++.h>
using namespace std;
int main(){
    int A,b,C,d;
    cin>>A>>b>>C>>d;
    cout<<"DIFERENCA = "<<(A*b)-(C*d);
}


活动打卡代码 AcWing 1. A + B

修勾啊
3个月前
#include<iostream>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    cout<<a+b;
}


活动打卡代码 AcWing 476. 对称二叉树

修勾啊
8个月前
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
const int N = 1000010;
int n;
int w[N], l[N], r[N], s[N];
int ans;
int dfs1(int u){
    if (!u) return 0;
    s[u] = dfs1(l[u]) + dfs1(r[u]) + 1;
    return s[u];
}
bool check(int a, int b){
    if (!a && !b) return true;
    if (!a || !b) return false;
    if (w[a] != w[b]) return false;
    return check(l[a], r[b]) && check(r[a], l[b]);
}
void dfs2(int u){
    if (!u) return;
    if (s[l[u]] == s[r[u]]){
        if (check(l[u], r[u]))
            ans = max(ans, s[u]);
    }
    dfs2(l[u]);
    dfs2(r[u]);
}
int main(){
    scanf("%d", &n);
    for (int i = 1; i <= n; i ++ ) scanf("%d", &w[i]);
    for (int i = 1; i <= n; i ++ ){
        scanf("%d%d", &l[i], &r[i]);
        if (l[i] == -1) l[i] = 0;
        if (r[i] == -1) r[i] = 0;
    }
    dfs1(1);  
    dfs2(1);  
    printf("%d\n", ans);
    return 0;
}


活动打卡代码 AcWing 2768. 直播获奖

修勾啊
8个月前
#include<bits/stdc++.h>
using namespace std;
const int N=605;
int n,w,t,a[N];
int f(int x)
{
    if(x<=1) x=1;
    for(int i=600;i>=0;i--)
    {
        x-=a[i];
        if(x<=0)
        {
            return i;
        }
    }
}
int main(){
    scanf("%d%d",&n,&w);
    for(int i=1;i<=n;i++)
    {
        scanf("%d",&t);
        a[t]++;
        cout<<f((int)i*w/100.0)<<" ";
    }
}