acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    userId_undefined

    法兰西玫瑰

    倔强青铜
    88阅读
    0回复
    3点赞
  • 链表入门题 题解

    userId_undefined

    亚洲卷王 AK IOI

    尊贵铂金
    38阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    很烫的凉水

    倔强青铜
    14阅读
    1回复
    0点赞
  • 没人爱用python吗

    userId_undefined

    dfุุุุุุุุุุัััั

    倔强青铜
    11阅读
    0回复
    0点赞
  • 数组模拟

    userId_undefined

    回来看看

    倔强青铜
    10阅读
    0回复
    0点赞
  • 题解

    很简单

    userId_undefined

    落榜的美术生

    倔强青铜
    9阅读
    0回复
    0点赞
  • answer

    #include<iostream> using namespace std; int main(){ int a[3250]={}; int n; int m,k; cin>>k; for(int i=1;i<=k;i++){ cin>>a[i]; } cin>>n>>m; for(int i=1;i<=k;i++){ cout<<a[i]<<" "; if(a[i]==n){ cout<<m<<" "; } } return 0; }

    userId_undefined

    余念安

    倔强青铜
    6阅读
    0回复
    0点赞
  • 速通

    userId_undefined

    纯粹容器

    倔强青铜
    3阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    无敌de鳖佬仔给老爷爷ccb

    秩序白银
    2阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    准

    倔强青铜
    2阅读
    0回复
    0点赞
  • 数组岂不妙哉

    userId_undefined

    MuktorFM

    荣耀黄金
    1阅读
    0回复
    0点赞
  • 666666

    #include<bits/stdc++.h> using namespace std; struct node{ int value; node *next; }; int main(){ int n,m,x; scanf("%d",&n); node *now,*prev,*head,*p; scanf("%d",&m); head=new node;head->value=m;head->next=NULL; now=head; for(int i=2;i<=n;i++){ scanf("%d",&m); p=new node;p->value=m;p->next=NULL; now->next=p; now=p; } scanf("%d %d",&m,&x); now=head; for(int i=1;i<=n;i++){ printf("%d ",now->value); if(now->value==m){ printf("%d ",x); } prev=now; now=prev->next; } delete now; delete prev; delete head; return 0; }

    userId_undefined

    黄金周

    秩序白银
    1阅读
    0回复
    0点赞
首页