炸弹猫
#include#include #include #include #include #include #include #include using namespace std; char getch(){ char buf = 0; termios old = { 0 }; fflush( stdout ); if ( tcgetattr( 0, &old ) < 0 ) perror( "tcsetattr()" ); old.c_lflag &= ~ICANON; old.c_lflag &= ~ECHO; old.c_cc[VMIN] = 1; old.c_cc[VTIME] = 0; if ( tcsetattr( 0, TCSANOW, &old ) < 0 ) perror( "tcsetattr ICANON" ); if ( read( 0, &buf, 1 ) < 0 ) perror( "read()" ); old.c_lflag |= ICANON; old.c_lflag |= ECHO; if ( tcsetattr( 0, TCSADRAIN, &old ) < 0 ) perror( "tcsetattr ~ICANON" ); return buf; } int main(){ system("reset"); printf(" 33[5;47;34m !!!!欢迎进入炸弹猫官网!!!! 33[0mn"); sleep(2); system("reset"); cout< >n; int tmp=n; int a[10000]; vector zbz(n); for(int i=0;i chaidan(n); vector chakan(n); vector fandi(n); vector haoma(n); for(int i=0;i 0){ swap(a[i], a[9999]); cout<<"完成!"<


