Permalink
Browse files

Updates.

  • Loading branch information...
1 parent 0e2ab95 commit 7622b6c365344dc7842934969261f37b1ffbbacb @Xorcerer committed Dec 17, 2013
View
@@ -1,3 +1,4 @@
# Compiler output.
*.out
*.result
+*.dSYM
@@ -1,3 +1,11 @@
all:
clang++ --std=c++11 --stdlib=libc++ readfile.cpp acapla.cpp -o acapla.out
clang++ --std=c++11 --stdlib=libc++ readfile.cpp logan.cpp -o logan.out
+
+run:
+ ./acapla.out test_cases.txt > acapla.result.txt
+ ./logan.out test_cases.txt > logan.result.txt
+
+diff:
+ diff acapla.result.txt result.txt
+ diff logan.result.txt result.txt
@@ -18,7 +18,18 @@ def gen_string_pair():
return (str1, str2), common_substring
if __name__ == '__main__':
- for i in xrange(10):
- (s1, s2), common_substring = gen_string_pair()
- print s1
- print s2
+ result = []
+
+ with open('test_cases.txt', 'w') as f:
+ for i in xrange(100):
+ (s1, s2), common_substring = gen_string_pair()
+ f.write(s1)
+ f.write('\n')
+ f.write(s2)
+ f.write('\n')
+
+ result.append(common_substring)
+
+ with open('result.txt', 'w') as f:
+ f.write('\n'.join(result))
+ f.write('\n')
@@ -0,0 +1,100 @@
+KfzCwik8TqQAJSbxXq5ptP7RkRlFbgCMELU5PugHtGB35SXuIyEP
+Q8Bq7aQnsANGHi4S4yjE5siSx
+7GuaKKrJ6mVc6ItyQPnVUskQT7zof11VQDpro5orjYF7OQ
+cekDe2UOrrELFQ6BOR5svZ0wkoIT0xgq44khu6m4Fe6gX8aJOvn94InA
+7mlWA9vBQBgnIn7DX5s8u7goFxq3brZS6hWLMyUH7rRMScIQ
+yGXTa5YavYJZEtTG5Ev4iFI8zRAPRj3Om4jk8d6KzP4y0ZsP4rHQrolAb0jDFJ9ZJc21SfMHXRNTjdFprYp2negcHQu4p8Ei
+BvSGiLZJ8wGfGN4dzHoXY5dqKEfajKgvaqoDpUL5BoBaanSPPO7gU0MGV3jWAlbQZLoWS4q1DzrF
+LlaGUHNRRoU8ktsixr5k7H5s4HThChM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vMiVAeHpDeSgGX0GclFYNrq9c6scLEkVHlsgi9aTmJFJPIYAhz9PSxW7UKhK
+NnoD6egWMJhNOPlfjFcyXhDWWHrlqB6h3jHo
+AVZPINi7gOGRB6LWcywO3Bi70IEx
+M7p5JQURv1TC6XJGJ0o6gOECXHUz8M2AlGeRAU3Mw5fb3jCRundyWvBZ5uMz9Und8FlTN8N1ru7gXJ6Y
+aNzCn277mJX3Q8PlehvO4GRpcg2xku
+t4YtSssAAt8uzm3WhVHqNWF7pXQdg2UCtZpQ6hgv30TFphR5gLM61yYaRqygpNDDj6
Oops, something went wrong.

0 comments on commit 7622b6c

Please sign in to comment.