From 7b6d57b549cc858deb1acc00a64880696839bc11 Mon Sep 17 00:00:00 2001 From: marioyc Date: Sat, 29 Jan 2011 12:02:12 -0500 Subject: [PATCH] PKU --- PKU/2945 - Find the Clones.cpp | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 PKU/2945 - Find the Clones.cpp diff --git a/PKU/2945 - Find the Clones.cpp b/PKU/2945 - Find the Clones.cpp new file mode 100644 index 0000000..85e49bf --- /dev/null +++ b/PKU/2945 - Find the Clones.cpp @@ -0,0 +1,38 @@ +#include +#include +#include +#include + +using namespace std; + +int main(){ + int n,m,cont[20000]; + char s[21]; + string a[20000]; + + while(true){ + scanf("%d %d",&n,&m); + if(n==0) break; + + for(int i = 0;i