#include <bits/stdc++.h> using namespace std; int main(){ int a[1001]; int dong=0,cishu=10; bool b[1001]; for(int i=1;i<=10;i++){ b[i]=true; } for(int i=1;i<=1000;i++){ b[cishu]=false; if(i+cishu>10){ cishu=(i+cishu)%10; }else{ cishu+=i; } } for(int i=1;i<=10;i++){ if(b[i]==true){ cout<<i<<endl; } } return 0; }
标签:std,10,cishu,捉迷藏,int,1001 From: https://www.cnblogs.com/fushuxuan/p/17725648.html