/* ID: haolink1 PROG: beads LANG: C++ */ //#include#include #include using namespace std; int main(){ ifstream fin ("beads.in"); unsigned int num; fin >> num; string beads; fin >> beads; if(beads.length() != num){ cout<<"error"< max_num) cur_num:max_num; } ofstream fout ("beads.out"); fout<