Word frequency count FIXED
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Calculate the frequency with which each word appears in the sample input. Punctuation marks should be deleted, and all words should be written in lowercase, for the sake of comparison; the output should be in sorted order. (Sorry, there was a bug I didn't notice in my test program that I used to generate the output first time round.)
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
News
* updated goruby's version using revision 15046.
* released caddy, a helper tool for golfers. You can test your solution, squeeze (remove comments or unnecessary whitespaces) your code, and submit the solution with this tool. Please unpack the package and check README for details. (I fixed a bug of database. Please re-download the package again if your caddy doesn't work correctly)
* updated goruby using this version. The most significant change might be the faster method_missing, which is provided by eban and flagitious. Thanks for the great contribution!
* added "name grep" to language summary page. This patch is provided by flagitious. Also, fixed binary escape for \x1a-\x1f, suggested by Pla. Thanks two guys!
* updated golfscript using new version and ruby1.9.
* added language summary page. You can access the page from language ranking. These information will be updated every 10 minutes. Uploaded the newest source code of this server.
* added goruby, which is a kind of joke program but is *officially* bundled in ruby-1.9.0-0 package (you can create the binary by "make golf"). I think there are two features: 1. Kernel#h method, which outputs Hello, world! 2. short method names: you can call Kernel#print using "pr". This feature is implemented by method_missing.
* added Vim as a language. You should make the buffer match the expected output given by each problem. The buffer is initialized using the standard input of the problem. For example, "ddZZ" can be the 4B solution of "delete first line" challenge.
* added GolfScript, a stack oriented esoteric language developped by flagitious. I'm pretty sure this language can be the #1 language of this site. Though the first purpose of this language might be golfing, its computation model is interesting, too. Thanks flagitious for this nice work!
* added Z80 as a language. Please check out the description of the environment made by mokehehe. Thanks mokehehe for suggesting and providing the environment!
* according to flagitious's suggestion, I relaxed timeout policy: you have 1 sec for 3 test cases problems, 1.5 secs for 2 test cases, and 3 secs for 1 test case.
* deploy new exec filter into all problems. It makes program ~10 times faster. Please tell me if you find some bugs.
* thanks all guys for submissions for tesing problem! I fixed A+'s suffix problem according to the suggestion.
* the ICFP contest is coming soon (July 20th)! I introduce this contest in this site because I think you golfers will enjoy this contest (especially, the contest in the last year contains many golfing challenges!). Join and enjoy the contests (but don't defeat me :)
* add Whirl.
* update version of DMD to 1.015 and fix VHDL's exec denied problem.
* add Pefunge.
* my email address was changed.
* add deadline feature. Authors of problems can select the deadline. After the deadline, the problem state becomes to "post-mortem" and all submitted source codes are opened. If you want to create closed problem, you can select no deadline option.
* add Postscript.
* add xgawk, m4, and update GHC to 6.6 from 6.4.
* expire all entries which use file save. I know this bug as mentioned the below, but i have not fixed yet. Please kindly don't submit entries using file save/load.
* changed the timeout of Java to 1.5sec (because its stratup is slow).
Sample output:
6 a
1 access
2 according
5 add
6 added
1 address
1 after
1 again
4 all
1 also
10 and
2 are
4 as
1 authors
1 b
5 be
2 because
1 becomes
1 below
2 binary
2 buffer
2 bug
1 bugs
1 bundled
3 but
8 by
2 caddy
1 call
8 can
1 case
2 cases
1 challenge
1 challenges
1 change
2 changed
2 check
1 closed
2 code
1 codes
1 coming
1 comments
1 computation
1 contains
4 contest
1 contests
1 contribution
1 correctly
2 create
1 database
1 ddzz
4 deadline
1 defeat
1 delete
1 denied
1 deploy
1 description
1 details
1 developped
1 dmd
1 doesnt
2 dont
1 each
1 eban
1 email
2 enjoy
2 entries
2 environment
1 escape
1 esoteric
1 especially
1 every
1 example
2 exec
1 expected
1 expire
2 faster
2 feature
1 features
2 file
1 filter
1 find
2 first
1 fix
4 fixed
4 flagitious
1 flagitiouss
12 for
2 from
1 ghc
1 given
1 golf
2 golfers
2 golfing
2 golfscript
2 goruby
1 gorubys
1 great
1 grep
2 guys
2 have
1 hello
1 helper
8 i
1 icfp
3 if
1 im
1 implemented
3 in
1 information
1 initialized
1 input
1 interesting
1 into
1 introduce
9 is
1 it
2 its
1 java
1 join
1 joke
1 july
1 kernelh
1 kernelprint
1 kind
1 kindly
1 know
9 language
1 last
1 line
1 m
1 made
2 make
1 makes
1 many
1 match
2 me
1 mentioned
2 method
2 methodmissing
2 might
1 minutes
1 model
2 mokehehe
1 most
1 my
1 name
1 names
2 new
1 newest
1 news
1 nice
1 no
1 not
11 of
1 officially
1 opened
1 option
1 or
1 oriented
1 out
1 output
1 outputs
3 package
3 page
1 patch
1 pefunge
1 pla
5 please
1 policy
1 postmortem
1 postscript
1 pr
1 pretty
7 problem
3 problems
2 program
2 provided
1 providing
1 purpose
1 ranking
1 readme
1 redownload
1 relaxed
1 released
1 remove
1 revision
2 ruby
1 save
1 saveload
2 sec
2 secs
2 select
1 server
1 short
1 should
1 significant
2 site
1 slow
3 solution
1 some
1 soon
2 source
1 squeeze
1 stack
1 standard
1 state
1 stratup
1 submissions
2 submit
1 submitted
1 suffix
1 suggested
1 suggesting
2 suggestion
2 summary
1 sure
1 tell
1 tesing
4 test
1 th
5 thanks
30 the
1 there
1 these
2 think
13 this
1 though
2 timeout
1 times
8 to
1 too
2 tool
2 two
1 unnecessary
1 unpack
2 update
4 updated
1 uploaded
1 use
6 using
4 version
1 vhdls
1 vim
1 want
1 was
4 which
1 whirl
1 whitespaces
2 will
1 with
2 work
1 world
1 xaxf
1 xgawk
1 year
1 yet
10 you
3 your
1 z
Sample input:_
This test is much shorter; this line is just a test.
Sample output:
1 a
2 is
1 just
1 line
1 much
1 shorter
2 test
2 this
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | ksk | 84 | 0.7459 | 2008/02/27 00:34:32 | 0B / 43B / 38B |
2 | niha | 85 | 0.4393 | 2008/02/16 16:07:32 | 0B / 48B / 34B |
3 | eban | 86 | 0.4752 | 2008/02/28 01:17:01 | 0B / 49B / 34B |
4 | leonid | 95 | 0.0697 | 2008/02/14 16:39:27 | 0B / 47B / 44B |
5 | xdigit | 113 | 0.1545 | 2008/02/20 19:07:52 | 0B / 57B / 53B |
6 | shinh | 116 | 0.2193 | 2008/02/28 00:10:08 | 0B / 55B / 57B |
7 | tabasa | 149 | 0.5597 | 2008/02/14 10:56:21 | 1B / ?B / ?B |
8 | murky-satyr | 78 | 0.2253 | 2008/09/11 15:46:27 | 0B / 41B / 35B |
9 | eban | 79 | 0.1705 | 2008/06/16 12:53:36 | 0B / 41B / 36B |
10 | polo | 79 | 0.0509 | 2020/04/20 19:48:28 | 0B / ?B / ?B |
11 | leonid | 83 | 0.7347 | 2008/02/28 11:35:27 | 0B / 41B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ySas | 66 | 0.0561 | 2008/02/15 10:24:52 | 0B / 26B / 37B |
2 | Mithran | 70 | 0.0456 | 2008/02/15 21:54:46 | 0B / 28B / 38B |
3 | Defenestrator | 73 | 0.0246 | 2008/02/21 10:42:29 | 0B / 37B / 31B |
4 | ais523 | 74 | 0.0445 | 2008/02/14 03:56:50 | 0B / ?B / ?B |
5 | ivanw | 90 | 0.0650 | 2008/02/19 12:54:42 | 0B / ?B / ?B |
6 | tails (ySas) | 62 | 0.1246 | 2016/12/01 09:42:46 | 0B / 23B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kt3k | 125 | 0.1596 | 2008/02/28 01:38:25 | 0B / 78B / 38B |
2 | zetamatta | 145 | 0.1227 | 2008/02/23 09:55:12 | 0B / 85B / 43B |
3 | Defenestrator | 148 | 0.6762 | 2008/02/15 09:49:25 | 3B / 88B / 45B |
4 | gnibbler | 110 | 0.0147 | 2010/03/05 09:30:09 | 0B / 68B / 35B |
5 | recursive | 124 | 0.0538 | 2008/10/14 12:26:41 | 0B / 71B / 43B |
6 | _ | 158 | 0.0532 | 2019/06/04 08:05:47 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | daira | 134 | 0.3092 | 2008/02/27 18:29:56 | 0B / 79B / 50B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kozima | 235 | 0.3061 | 2008/02/27 18:55:23 | 0B / 161B / 65B |
2 | kozima | 224 | 0.5293 | 2008/07/14 14:46:12 | 0B / 153B / 63B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 165 | 3.0292 | 2008/02/28 02:47:58 | 0B / 124B / 31B |
2 | murky-satyr | 211 | 3.1079 | 2008/02/17 00:25:52 | 0B / 149B / 44B |
3 | pooq | 140 | 3.0421 | 2008/03/07 10:43:11 | 0B / 110B / 19B |
4 | murky-satyr | 142 | 2.9498 | 2008/03/07 03:39:17 | 0B / 103B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | yt | 316 | 1.4852 | 2008/02/19 17:50:31 | 0B / 170B / 130B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 81 | 0.1605 | 2008/02/28 03:18:38 | 0B / 25B / 55B |
2 | I., S. | 56 | 0.0771 | 2012/03/11 00:16:44 | 0B / 22B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hinoe | 194 | 0.3131 | 2008/02/24 23:24:49 | 12B / 92B / 89B |
2 | 51b | 198 | 0.0273 | 2008/02/27 23:26:56 | 0B / 110B / 87B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 168 | 0.0257 | 2008/02/23 04:45:41 | 0B / 105B / 56B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | notogawa | 133 | 0.0346 | 2008/02/22 22:00:41 | 0B / ?B / ?B |
2 | konn | 143 | 0.0275 | 2008/02/28 00:53:12 | 0B / ?B / ?B |
3 | Defenestrator | 130 | 0.0477 | 2008/02/28 13:58:59 | 0B / 84B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 145 | 0.1143 | 2008/07/03 18:52:03 | 0B / 64B / 79B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | eban | 61 | 0.1283 | 2008/02/14 13:24:55 | 0B / 30B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | yshl(bin) | 157 | 0.6143 | 2008/02/16 02:59:58 | 62B / 58B / 33B |
2 | yshl | 230 | 0.7076 | 2008/02/16 02:59:45 | 0B / 156B / 44B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 93 | 0.3348 | 2012/10/27 16:23:46 | 0B / 49B / 43B |
2 | murky-satyr | 95 | 2.6991 | 2008/04/15 23:33:48 | 0B / 51B / 43B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | polo | 68 | 0.1393 | 2020/04/21 18:34:48 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 16 | 0.2168 | 2017/02/08 07:20:07 | 5B / 6B / 4B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | whio | 16 | 10000 |
2 | Vim | udioica | 41 | 3902 |
3 | goruby | murky-satyr | 54 | 2962 |
4 | J | I., S. | 56 | 2857 |
5 | Bash | eban | 61 | 2622 |
6 | Perl | tails (ySas) | 62 | 2580 |
7 | GolfScript | polo | 68 | 2352 |
8 | Ruby | murky-satyr | 78 | 2051 |
9 | Bash (builtins) | llhuii(tails) | 85 | 1882 |
10 | R | pooq | 93 | 1720 |
11 | Groovy | murky-satyr | 106 | 1509 |
12 | Arc | murky-satyr | 108 | 1481 |
13 | Python | gnibbler | 110 | 1454 |
14 | Scala | murky-satyr | 129 | 1240 |
15 | Haskell | Defenestrator | 130 | 1230 |
16 | PHP | daira | 134 | 1194 |
17 | JavaScript | murky-satyr | 138 | 1159 |
18 | Io | pooq | 140 | 1142 |
19 | AWK | nn | 145 | 1103 |
20 | Smalltalk | murky-satyr | 146 | 1095 |
21 | Postscript | yshl(bin) | 157 | 1019 |
22 | D | 51b | 168 | 952 |
23 | Lua | murky-satyr | 177 | 903 |
24 | Scheme | murky-satyr | 183 | 874 |
25 | Tcl | murky-satyr | 186 | 860 |
26 | C | hinoe | 194 | 824 |
27 | Common LISP | kozima | 224 | 714 |
28 | BASIC | yt | 316 | 506 |
return to the top page