示例#1
0
文件: A.cpp 项目: xyiyy/icpc
int main()
{
	ios::sync_with_stdio(false);
    Cyclemin *temp = new Cyclemin();
    string str;
    int k;
    cin>>str>>k;
    cout<<temp->bestmod(str,k)<<endl;;

	return 0;
}
示例#2
0
int main( int argc, char* argv[] ) {
    {
        Cyclemin theObject;
        eq(0, theObject.bestmod("aba", 1),"aaa");
    }
    {
        Cyclemin theObject;
        eq(1, theObject.bestmod("aba", 0),"aab");
    }
    {
        Cyclemin theObject;
        eq(2, theObject.bestmod("bbb", 2),"aab");
    }
    {
        Cyclemin theObject;
        eq(3, theObject.bestmod("sgsgaw", 1),"aasgsg");
    }
    {
        Cyclemin theObject;
        eq(4, theObject.bestmod("abacaba", 1),"aaaabac");
    }
    {
        Cyclemin theObject;
        eq(5, theObject.bestmod("isgbiao", 2),"aaaisgb");
    }
	return 0;
}