From bd6320b6f79f56d910278d094fb6b66028a4268b Mon Sep 17 00:00:00 2001 From: halfcrazy Date: Sat, 2 May 2015 16:58:26 +0800 Subject: [PATCH 1/2] add 0001 --- halfcrazy/0001/result.txt | 200 ++++++++++++++++++++++++++++++++++++++ halfcrazy/0001/solve.py | 8 ++ 2 files changed, 208 insertions(+) create mode 100644 halfcrazy/0001/result.txt create mode 100644 halfcrazy/0001/solve.py diff --git a/halfcrazy/0001/result.txt b/halfcrazy/0001/result.txt new file mode 100644 index 00000000..f542fdf4 --- /dev/null +++ b/halfcrazy/0001/result.txt @@ -0,0 +1,200 @@ +310914c00e944 +797adce977ad4 +7f7e172a6e3e4 +73adb82f52e14 +daf7d113b09a4 +098e279801ae4 +0e9623f48f504 +95a2e90ca0094 +7d5eace5502f4 +654a486804464 +d61d1eede6674 +fb19a56da5194 +e70189986ba54 +4589b6c9cd154 +2b4a7d831eb34 +8775c096dcfe4 +a19ac152c42e4 +93c71b9c82394 +fbe3e19309144 +a32a9b9adeab4 +5b3f8fd8c0634 +1c95868a68e14 +7e034ba837b24 +f2ccc45879f44 +8949f1e0ab984 +9d48967622a94 +613d51d9b4374 +f901558170954 +989a4b8fda264 +64178fae70fa4 +c57bb76101084 +c5f20078d4054 +cee6155b5e2c4 +3f6d41265f234 +768ab0a3ac344 +03977a337e3b4 +47d4d01831544 +b7f2abbd553f4 +754c36b1ced44 +ca33abc861a24 +f8c3444f8aa34 +389c9306a6b04 +fea340e259834 +62c95d38571a4 +6d38e7413a4a4 +fcb3535951a44 +1e9afb49cb0a4 +6fb3c4831faf4 +969fa436d2d64 +4f29071a26fe4 +3c89f9e9f2874 +5b88d29fd5314 +52ff9283ace44 +1b865c1e477f4 +a7c72fb8903b4 +52cd09ee416b4 +58a0d647be9c4 +97607537e3b44 +c3ffce00ae354 +93efa6ad8b854 +6a1522b7323f4 +2176c06962a74 +aba875fc1cf64 +2f253b75f74d4 +bb28e98896094 +d1f8cc6fda774 +251ad7875cea4 +9069757f81584 +02c25c2f312b4 +67638e9b23ce4 +ff0cc81a62744 +621bda1d7b294 +bb9d0bd703674 +aea8a5e18be64 +d4e9a12025494 +eb55162bf19a4 +7c5aa7ba6f764 +c7cc9889a1274 +ff8ab65fc15a4 +c2b77fe2cec94 +db5b5f7a9f214 +4a1bff99da204 +b466288c03174 +0fe32d7b70904 +0c32e10e3ab94 +d9d9eebb0a514 +9a6cfa4969f64 +5be1e5ee9fa44 +ee209b6711564 +f76d77940fd44 +8b4c275556c84 +80e75856b6784 +da1a1ce1f4604 +3d0f805f7bc64 +2c7052e729dd4 +29811c43115a4 +33e4a225fc144 +db98df596b504 +afa87295c7b54 +004ea7b140ab4 +2ee253b64b594 +0f8cd02906724 +e06357e22e314 +60976f82506c4 +e89ccf7789304 +e64cc70563424 +3402ef7150ff4 +d9bd6b48cbdc4 +d508ba737c0e4 +4361684414e84 +a3fb6df5e6de4 +7af463d1fca24 +b02f4c9803b84 +a764321f827d4 +a72c7893e6014 +ee2f620499794 +25d713beccce4 +e74dae27a24c4 +049787c52d964 +6775232f7ac94 +fea166ddb0fa4 +b7c853de68274 +5c64be6dfd174 +7db45d281f464 +10b664ca0e4a4 +2fe8d6bf5f6e4 +4fa6334e37d84 +eef7d29981b44 +02dfe98cf1ed4 +65ee36daea704 +f8950886799e4 +bda45d8099944 +22b2b9d043cb4 +4aa990bb82e54 +d6f12c0d70724 +12fc4fa8bdbc4 +ed3f6470bf764 +65ed452046c84 +1cc0ffc7dbd44 +74daf7e151304 +f11bbcda6bc04 +8ac04e380dcb4 +254cc95ada7e4 +8b9139b617e84 +8487a7988d2a4 +5ce4001a9d924 +fe5370bfe8534 +e0d17c3378e34 +cfa97bb0292a4 +d387bd8abcf34 +c583e2ca11e54 +161172aa6a934 +cc7098aa2c844 +a174fdde7fba4 +07bdd3d28c734 +446593ac736f4 +5840d3498ebb4 +365713fb3fa24 +61f5b4d3029d4 +9a1ce0abe8604 +ec6d6b3f29284 +4edad79fb4d04 +64e9a51ffe8a4 +99e8154509694 +4289ef107c5a4 +dc6f0651649b4 +5af3073bc7064 +b4787cb060b54 +47256548609b4 +066384d4627e4 +0baec0385be44 +1daba11236564 +969f21b3ca864 +5efd0383f26c4 +41d48b750f854 +82fa7e2279fe4 +d8513b2effdc4 +f2ee1abe90eb4 +160beecfa07b4 +9690d31e090f4 +74a6216faf4c4 +a9ba77f7b4494 +d722ec424ab04 +eba513d7f9504 +4bc99d023be64 +e2bcc0e8d6694 +9fca6072af4e4 +434da4522aea4 +c663d39ac51f4 +ff9242759f2b4 +39fa7a7d05ae4 +2651bebc3bf74 +a63d714e805d4 +3f1438c559334 +785699fcf8d34 +bbea19a62cef4 +493a4eceb8f84 +e049a572fe044 +50a3e1a77e384 +3d617f5f16ae4 diff --git a/halfcrazy/0001/solve.py b/halfcrazy/0001/solve.py new file mode 100644 index 00000000..f1d13656 --- /dev/null +++ b/halfcrazy/0001/solve.py @@ -0,0 +1,8 @@ +import uuid + + +if __name__ == '__main__': + with open('result.txt', 'w') as f: + for i in range(200): + code = str(uuid.uuid4()).replace('-','')[:13] + f.write(code + '\n') From d812d921b40836cc50db43df730779f6f27c4491 Mon Sep 17 00:00:00 2001 From: halfcrazy Date: Sat, 2 May 2015 16:58:40 +0800 Subject: [PATCH 2/2] add 0004 --- halfcrazy/0004/in.txt | 29 +++++++++++++++++++++++++++++ halfcrazy/0004/solve.py | 10 ++++++++++ 2 files changed, 39 insertions(+) create mode 100644 halfcrazy/0004/in.txt create mode 100644 halfcrazy/0004/solve.py diff --git a/halfcrazy/0004/in.txt b/halfcrazy/0004/in.txt new file mode 100644 index 00000000..b5fb51d6 --- /dev/null +++ b/halfcrazy/0004/in.txt @@ -0,0 +1,29 @@ +View the complete list of classifiers you may choose from. + +See the meta-data docs for details about how to include them in your setup.py file. + +PyPI will attempt to parse the "long_description" from your meta-data as reStructuredText. If this fails, it will be presented to users as plain text (all whitespace and formatting retained). + +Missing Classifier? + +Is a classifier you need missing from the classifiers list? + +Python frameworks with plugins or packages that target the framework can get their own category. The category should only be added after such packages exist. + +Complementary packages can link to each other from their descriptions, they do not need a category to link them together; only when packages are provided by different people does a category need to be created. + +To ask for a category email catalog-sig@python.org . + +Package Distribution Files + +Note that submitting a package distribution file automatically submits the package's meta-data. You may submit package distribution files either by: + +appending the "upload" command to a setup.py source dist or built dist command, eg "python setup.py sdist upload", or +logging into the Package Index and using the package management interface to manually upload files. +The "upload" command has a number of options, including being able to sign the upload using GPG. See "python setup.py upload --help" for more information. + +Exposing Multiple Releases + +When a new release of a package is submitted to the Package Index, all previous releases of that package are hidden from the display. This means that listings and searches will no longer find those releases. + +You may use the package admin interface to un-hide releases. This may be useful if you have both a stable and a development release active at the same time. These will be hidden again on the next submission of meta-data. \ No newline at end of file diff --git a/halfcrazy/0004/solve.py b/halfcrazy/0004/solve.py new file mode 100644 index 00000000..fd872247 --- /dev/null +++ b/halfcrazy/0004/solve.py @@ -0,0 +1,10 @@ +if __name__ == '__main__': + d = {} + with open('in.txt', 'r') as f: + text = ''.join(f.readlines()) + for word in text.split(): + if word in d.keys(): + d[word] = d[word] + 1 + else: + d[word] = 1 + print d