c

chenyiran2012

#1040386CCF 5 级

这名用户暂未设置签名。

发帖
11
文章
5
互动
17
陶片
0
获赞
5
收藏
5

历史用户名外显

追踪最近的用户名外显变动记录。

  1. chenyiran2012
    最早追溯到 2025/11/03最后捕获于 2025/11/03
  2. chenyiran2012
    最早追溯到 2025/07/22最后捕获于 2025/07/22
  3. chenyiran2012
    最早追溯到 2024/08/07最后捕获于 2024/08/07

时间线

最近的文章、讨论、云剪贴板与社区记录

  1. 回复讨论

    在讨论为什么MLE回复:

    @[complete_binary_tree](luogu://user/683859)我是傻子
  2. 发起讨论
    为什么MLE

    ```c++ #include using namespace std; struct node{ int a,b,c; }s[100010]; //int f[100010]; //int r[100010]; long long dp[80][80][80][80]; long long dp1[350][350]…

    回复 3参与人数 3
  3. 发起讨论
    0分求条

    ```c++ #include #define int long long using namespace std; int a[100010]; int dp[10000010]; map mp; int sum,cnt,r,c,t,n; signed main(){ ios::sync_with_stdio(0);…

    回复 0参与人数 1
  4. 发起讨论
    9分求条

    ```c++ #include using namespace std; long long p[500010],qh1[500010],qh2[500010]; long long mod=1e9+7; int ol=1313; long long qj(int l,int r){ return qh1[r]-qh1…

    回复 0参与人数 1
  5. 发起讨论
    60求条

    ```c++ #include #define int long long const double PI=acos(-1.0); using namespace std; int read(){ int sum=0,f=1; char ch=getchar(); while (ch '9'){ if (ch=='-'…

    回复 0参与人数 1
  6. 发布文章
    2025 乔斯集训

    # **2025 乔斯集训** 注:具体内容可见课件/deepseek/OI Wiki ## **DAY 1** ### **上午:** **1.** 广搜拓展 bfs spfa floyd 普通最短路 + 带权最短路 普通最短路:队列 queue 队尾插入删除 带权最短路: 01广搜 时间复杂度和普通广搜一样 **2…

    获赞 1评论 0
  7. 发起讨论
    0分求条

    ```c++ #include using namespace std; struct node{ long long ol[10]; long long fg; }s[500010]; long long tot=1,cs=1; long long n,m,t; void build(string y){ cs=1;…

    回复 0参与人数 1
  8. 回复讨论

    在讨论球跳回复:

    回去改
  9. 回复讨论

    在讨论球跳回复:

    ```c++ #include using namespace std; struct node{ int t,k; vector b; }; queue q; int o[100010]; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); in…
  10. 回复讨论

    在讨论80分求调回复:

    @[fifast](luogu://user/1402877) 谢谢,已关
  11. 发起讨论
    80分求调

    ```c++ #include using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string a; cin >> a; if (a[a.size()-2]=='e' && a[a.size()-1]==…

    回复 3参与人数 3
  12. 发起讨论
    90分TLE求调

    ```c++ #include using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); long long n,l,r; cin >> n >> l >> r; long long f=r%n,k=0; k=r…

    回复 1参与人数 1
  13. 回复讨论

    在讨论DEV样例过了,提交CE?回复:

    除了那俩没别的了
  14. 回复讨论

    在讨论DEV样例过了,提交CE?回复:

    改成稀巴烂了,至少过了 ```c++ #include using namespace std; string t,p; int n,m,k,NN[1000010]; void build(string s){ // NN[1]=0; for (int i=1,j=0;i >t>>p; n=t.size(); m=p.…
  15. 回复讨论

    在讨论DEV样例过了,提交CE?回复:

    ```c++ #include using namespace std; string s, p; int t[1000010]; int main(){ cin >> s >> p; int sl=s.size(); int pl=p.size(); for(int i=1,j=0;i<pl;i++){ while(…
  16. 回复讨论
  17. 发起讨论
    请求加强数据

    本来想骗分的代码一下就A了 我的代码找到公共子串就算重复部分,而题中说明了前缀和后缀 ```c++ #include using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s1,s2; cin…

    回复 2参与人数 2
  18. 发起讨论
    80分TLE

    ```c++ #include using namespace std; long long s[50010][5]; long long gh[50010]; long long pd(long long x){ if(gh[x]){ if((x-gh[x])%2==0){ return 0; } } return…

    回复 0参与人数 1
  19. 回复讨论

    在讨论求调 样例不过回复:

    ```c++ #include #include #include #include #include #include #include #include #include #include #include #include //#include using namespace std; const int con…
  20. 回复讨论

    在讨论求调 样例不过回复:

    无向图存双向边
  21. 回复讨论

    在讨论求调 样例不过回复:

    主函数两行注释改回来,dfs(root,0)
  22. 回复讨论

    在讨论求调 样例不过回复:

    ```c++ void dfs(int x,int y){ dep[x]=dep[y]+1; bz[x][0]=y; for (auto i:b[x]){ if (i!=y){ dfs(i,x); } } } ``` 这我的
  23. 回复讨论

    在讨论求调 样例不过回复:

    dfs不大对
  24. 回复讨论

    在讨论求调 样例不过回复:

    改蒙了
  25. 发起讨论
    倍增30分TLE求调

    ```c++ #include using namespace std; inline int read() { int x=0,f=1;char ch=getchar(); while (ch '9'){if (ch=='-') f=-1;ch=getchar();} while (ch>='0'&&ch 9) wr…

    回复 1参与人数 1
  26. 回复讨论

    在讨论求调40pts回复:

    @[lizihangrq](luogu://user/1071907) 只需要把else的循环顺序(j,k)换一下就行了,在稍微一改 ```c++ else{ for(int j=T;j>=t[i];j--){ for(int k=0;k #include #include #include #include #inc…
  27. 发起讨论
    0分求调

    ```c++ #include using namespace std; #define N 100010 long long ans[N >1; build(p >1; ans[p =r){ ans[p]+=(r-l+1)*k; ans[p]%=mod; tag2[p]=(tag2[p]+k)%mod; return…

    回复 0参与人数 1
  28. 回复讨论

    在讨论求调,输入有问题回复:

    @[lizihangrq](luogu://user/1071907) 数组记得开大一点 建议<<2
  29. 发布文章
    Knapsack 2

    这依旧是一道“典型的dp” 由题意,不难看出这是一道背包dp(01背包) 如往常一样,dp4步走 1:定义状态 以前的dp[i][j]都是表示到第i个物品容量恰好为j的最大总价值是多少,但是这一题中背包容量达到了1e9,数组开不下,怎莫办呢? 很简单,我们只需要把状态稍微一变:dp[i][j]表示到第i个物品总价值恰好…

    获赞 1评论 0
  30. 发布文章
    P1220 关路灯

    由题意,这也是一道典型的区间dp dp4步走 1:定义状态 dp[l][r][0/1]表示l~r的路灯全灭掉并且最后停在l/r的最小消耗 2:状态转移方程 dp[l][r][0]=min(dp[l+1][r][0]+(a[l+1]-a[l])*(s[n]-s[r]+s[l]),dp[l+1][r][1]+(a[r]-a…

    获赞 1评论 0