摘要:void Susake_add(char *s1, char *s2) { int len1 = strlen(s1), len2 = strlen(s2), len, i; int a[N] = {0}, b[N] = {0}; for(i = 0; i len2 ? l...
阅读全文
摘要:B. The least round waytime limit per test5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputThere is a square matrix n ...
阅读全文
摘要:main.cpp#include "Prototype.h"#include using namespace std;int main(int argc, char *argv[]) { Prototype *p = new ConcreatePrototype(); Proto...
阅读全文
摘要:main.cpp#include "Singleton.h"#include using namespace std;int main(int argc, char *argv[]) { Singleton *sgn = Singleton::Instance(); return...
阅读全文
摘要:main.cpp#include "AbstractFactory.h"#include "Product.h"#include using namespace std;int main(int argc, char *argv[]) { AbstractFactory *cf1 = ...
阅读全文
摘要:main.cpp#include "Factory.h"#include "Product.h"#include using namespace std;int main(int argc, char *argv[]) { Factory *fac = new ConcreateFac...
阅读全文