竞赛
考级
mciwzwyynm3irlhs
北大西洋公约 · NATO
#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; }
知予
MuktorFM
#include<iostream> using namespace std; int main(){ printf("%d",1); return 0; }
Fs_opztce
zsy
2S38_Derivatsiya
无敌的鳖佬仔给老爷爷猜猜被
#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 ; }
盐