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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined

    mciwzwyynm3irlhs

    出道萌新时间刺客空间掌握者秩序白银枚举·枚举小能手递归·套娃学徒
    108阅读
    1回复
    2点赞
  • 这题出的不行啊(保AC)

    userId_undefined

    北大西洋公约 · NATO

    出道萌新模拟·模拟练习生贪心·贪心尝试者I/O·IO入门者递归·套娃学徒枚举·枚举小能手
    65阅读
    4回复
    2点赞
  • -

    #include <bits/stdc++.h> using namespace std; struct node{ int data; node *next; }; int n,m; node *head,*p,*r; int main(){ cin>>n>>m; head=new node; head->data=1; head->next=NULL; r=head; for (int i=2;i<=n;i++){ p=new node; p->data=i; p->next=NULL; r->next=p; r=p; } r->next=head; node *q=head; for(int i=1;i<n;i++){ for(int j=1;j<m-1;j++){ q=q->next; } q->next=q->next->next; q=q->next; } cout<<q->data; return 0; }

    userId_undefined

    知予

    出道萌新空间掌握者倔强青铜
    45阅读
    0回复
    0点赞
  • 只可能是1

    userId_undefined

    MuktorFM

    时间刺客时空双修者出道萌新荣耀黄金CSP-S二等奖出题人
    36阅读
    0回复
    0点赞
  • 优化后的题解

    #include<iostream> using namespace std; int main(){ printf("%d",1); return 0; }

    userId_undefined

    Fs_opztce

    31阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    zsy

    7月全勤卷王题解仙人出道萌新时间刺客时空双修者秩序白银
    10阅读
    0回复
    1点赞
  • DeepSeek给的用vector的tj

    userId_undefined

    2S38_Derivatsiya

    18阅读
    0回复
    0点赞
  • python

    userId_undefined

    无敌的鳖佬仔给老爷爷猜猜被

    7月全勤卷王时间刺客空间掌握者循环·循环打卡人荣耀黄金I/O·IO入门者
    13阅读
    0回复
    0点赞
  • 冒泡

    #include<bits/stdc++.h> using namespace std; struct node{ int data ; node *next ; }; int n , m ; node *head , *p , *r ; int main(){ cin >> n >> m ; head = new node ; head -> data = 1 , head -> next = NULL ; r = head ; }

    userId_undefined

    盐

    3阅读
    0回复
    0点赞
首页