USACO 1.1 Broken Necklace (beads)

/*
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<

你可能感兴趣的:(USACO,USACO,题解)