2013年11月21日

Topcoder SRM 596 DIV 1

摘要: 250IncrementAndDoublingclass IncrementAndDoubling { private: int n; int a[55]; bool ok(){ for (int i=0;i desiredArray) { int res=0; n=sz(desiredArray); for (int i=0;i<n;i++) a[i]=desiredArray[i]; while (!ok()){ res+=check(); ... 阅读全文

posted @ 2013-11-21 12:31 电子幼体 阅读(130) 评论(0) 推荐(0) 编辑

Topcoder SRM 597 DIV 1

摘要: 250LittleElephantAndStringclass LittleElephantAndString { private: int ch[300]; public: int getNumber(string A, string B) { int ans=0; int n=A.length(); int p=n; memset(ch,0,sizeof(ch)); for (int i=0;i=0;i--){ bool ok=false; for (int j=... 阅读全文

posted @ 2013-11-21 12:27 电子幼体 阅读(151) 评论(0) 推荐(0) 编辑

导航