Make menu
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Make a menu which checks user input. It has to support 4 options.
+ should add 1 to counter and print the result.
/ should divide counter by 2 and print the result.
^ should power counter by 2 and as always print the result.
q should quit
Options
now post-mortem time, all source codes will be revealed
Sample input:_
++^^/q
Sample output:
1
2
4
16
8
Sample input:_
+++^+/^+/+/++^+/+/+/+/^//^q+/
Sample output:
1
2
3
9
10
5
25
26
13
14
7
8
9
81
82
41
42
21
22
11
12
6
36
18
9
81
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 38 | 0.0463 | 2012/05/02 09:36:29 | 0B / 20B / 16B |
2 | clock | 38 | 0.0387 | 2012/05/02 09:50:10 | 0B / 20B / 17B |
3 | kaki | 39 | 0.0613 | 2012/04/29 20:15:20 | 0B / 21B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 35 | 0.0328 | 2012/04/29 10:16:36 | 0B / 17B / 18B |
2 | GlitchMr | 51 | 0.0690 | 2012/04/29 03:08:59 | 0B / 17B / 34B |
3 | el1n | 55 | 0.0312 | 2012/05/04 20:14:17 | 0B / 17B / 38B |
4 | nfouille | 72 | 0.0317 | 2012/05/02 17:48:24 | 0B / ?B / ?B |
5 | test1(pm) | 43 | 0.0843 | 2012/05/13 19:34:22 | 2B / ?B / ?B |
6 | test1(GlitchMr&el1n) | 49 | 0.1158 | 2012/05/13 17:08:55 | 0B / 19B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 60 | 0.0430 | 2012/05/02 09:36:47 | 0B / 35B / 20B |
2 | clock | 60 | 0.0389 | 2012/05/02 09:46:59 | 0B / 35B / 20B |
3 | Defenestrator | 60 | 0.0705 | 2012/05/02 13:54:47 | 0B / 35B / 20B |
4 | purintai | 60 | 0.0470 | 2012/05/03 19:26:27 | 1B / 35B / 20B |
5 | hallvabo | 67 | 0.0697 | 2012/04/30 01:33:51 | 0B / 40B / 22B |
6 | Hendrik | 71 | 0.1363 | 2012/05/05 20:49:18 | 0B / 33B / 33B |
7 | aaa | 100 | 0.0554 | 2012/05/03 09:26:49 | 6B / 46B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 69 | 0.4934 | 2012/05/02 10:41:01 | 1B / 34B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kaki | 77 | 0.1151 | 2012/04/29 18:38:19 | 0B / 33B / 37B |
2 | kaki | 73 | 0.0839 | 2013/03/25 05:40:45 | 0B / 28B / 42B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 88 | 0.2178 | 2012/05/01 23:59:21 | 0B / 60B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 63 | 0.0365 | 2012/05/02 11:49:11 | 0B / 39B / 21B |
2 | nn | 63 | 0.0540 | 2012/05/02 11:55:31 | 0B / 39B / 21B |
3 | 0mg | 64 | 0.0853 | 2012/05/02 21:19:44 | 0B / 37B / 24B |
4 | s_hiiragi | 70 | 0.1033 | 2012/05/07 21:37:04 | 0B / 32B / 38B |
5 | rem | 74 | 0.0648 | 2012/05/12 15:11:52 | 0B / 33B / 41B |
6 | 0mg(clock) | 62 | 0.0928 | 2012/05/13 13:24:20 | 0B / 37B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 70 | 0.0419 | 2012/05/01 16:00:01 | 0B / 37B / 32B |
2 | Hendrik | 84 | 0.0407 | 2012/05/11 16:00:04 | 0B / 48B / 31B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 73 | 0.0203 | 2012/04/29 14:47:10 | 0B / 44B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 84 | 0.0452 | 2012/04/29 06:22:23 | 0B / 33B / 44B |
2 | teebee(pooq) | 80 | 0.0610 | 2012/05/14 08:42:53 | 0B / 33B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 67 | 0.0255 | 2012/04/29 05:55:48 | 0B / 33B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | L.A.I.N. | 65 | 0.0294 | 2012/05/03 21:33:51 | 0B / 35B / 30B |
2 | ush | 65 | 0.0345 | 2012/05/07 09:34:36 | 0B / 34B / 31B |
3 | hoge | 65 | 0.0299 | 2012/05/07 13:00:55 | 0B / ?B / ?B |
4 | nai | 66 | 0.0289 | 2012/05/04 11:06:03 | 0B / 34B / 32B |
5 | nn | 67 | 0.0277 | 2012/05/03 10:41:32 | 0B / 35B / 32B |
6 | shinh | 67 | 0.0293 | 2012/05/05 00:20:16 | 0B / 34B / 33B |
7 | inaniwa | 68 | 0.0370 | 2012/05/07 17:57:56 | 0B / 35B / 33B |
8 | masa.sd | 68 | 0.0292 | 2012/05/07 23:08:10 | 0B / 36B / 32B |
9 | Alinfty | 69 | 0.0258 | 2012/05/13 02:29:06 | 0B / 37B / 32B |
10 | G.w. | 69 | 0.0351 | 2012/05/13 02:39:19 | 0B / 37B / 32B |
11 | eha | 70 | 0.0317 | 2012/04/30 13:27:24 | 0B / 41B / 29B |
12 | Tommy6 | 70 | 0.0277 | 2012/04/30 22:55:19 | 0B / 39B / 31B |
13 | chocobi | 70 | 0.0262 | 2012/05/01 03:14:51 | 0B / 39B / 31B |
14 | lain | 71 | 0.0330 | 2012/05/04 23:28:45 | 0B / 37B / 34B |
15 | biggles | 71 | 0.0390 | 2012/05/05 09:59:51 | 0B / 37B / 34B |
16 | pan | 83 | 0.0272 | 2012/05/01 17:12:44 | 0B / ?B / ?B |
17 | amat | 87 | 0.0359 | 2012/05/01 23:17:40 | 0B / 44B / 41B |
18 | smkt | 102 | 0.0298 | 2012/05/04 07:25:35 | 0B / 58B / 44B |
19 | JH | 150 | 0.0341 | 2012/05/12 21:56:21 | 1B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | alex | 181 | 0.0750 | 2012/05/12 03:54:21 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | cojna | 74 | 0.0233 | 2012/04/30 05:12:57 | 0B / ?B / ?B |
2 | rst76 | 74 | 0.1159 | 2012/05/03 00:01:31 | 0B / 42B / 26B |
3 | mroman | 96 | 0.0610 | 2012/05/12 03:22:04 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rem | 126 | 0.1825 | 2012/05/12 14:26:35 | 1B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 119 | 0.4875 | 2012/05/01 18:03:28 | 0B / 72B / 44B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 94 | 0.0335 | 2012/05/06 18:56:34 | 0B / 58B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 140 | 0.0755 | 2012/05/04 14:24:26 | 0B / 45B / 89B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | zzo38 | 88 | 0.4454 | 2021/05/02 08:33:17 | 0B / 61B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kaki | 35 | 0.0323 | 2012/04/29 19:59:37 | 0B / 16B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 21 | 0.0889 | 2012/05/02 09:43:44 | 0B / 7B / 14B |
2 | clock | 24 | 0.2301 | 2012/05/03 12:02:16 | 0B / 5B / 19B |
3 | nooodl | 32 | 0.0738 | 2012/05/01 20:00:44 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | eiyuu | 2023 | 0.0438 | 2012/05/03 07:26:30 | 0B / 2023B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 58 | 0.0734 | 2012/05/10 16:02:11 | 4B / 19B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kaki | 36 | 0.1200 | 2012/04/29 20:25:19 | 0B / 9B / 27B |
2 | leonid | 36 | 0.1412 | 2012/05/02 09:56:50 | 0B / 15B / 19B |
3 | leonid | 35 | 0.0897 | 2012/05/13 03:18:20 | 0B / 15B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 53 | 3.1493 | 2012/05/03 15:18:38 | 0B / 32B / 19B |
2 | nn | 55 | 3.2080 | 2012/05/02 23:09:17 | 0B / 33B / 20B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | GolfScript | leonid | 21 | 10000 |
2 | Perl | teebee | 35 | 6000 |
3 | Befunge | kaki | 35 | 6000 |
4 | goruby | leonid | 35 | 6000 |
5 | Ruby | leonid | 38 | 5526 |
6 | J | I., S. | 39 | 5384 |
7 | Groovy | clock | 53 | 3962 |
8 | Vim | clock | 58 | 3620 |
9 | Python | leonid | 60 | 3500 |
10 | JavaScript | 0mg(clock) | 62 | 3387 |
11 | C | L.A.I.N. | 65 | 3230 |
12 | BASIC | pooq | 67 | 3134 |
13 | PHP | clock | 69 | 3043 |
14 | Lua | pooq | 70 | 3000 |
15 | Icon | clock | 73 | 2876 |
16 | Scheme | kaki | 73 | 2876 |
17 | Haskell | cojna | 74 | 2837 |
18 | REXX | teebee(pooq) | 80 | 2625 |
19 | Io | pooq | 88 | 2386 |
20 | Postscript | zzo38 | 88 | 2386 |
21 | Euphoria | clock | 94 | 2234 |
22 | SNOBOL | chocobi | 111 | 1891 |
23 | Maxima | pooq | 119 | 1764 |
24 | C# | rem | 126 | 1666 |
25 | wake | clock | 140 | 1500 |
26 | D | alex | 181 | 1160 |
27 | Grass | eiyuu | 2023 | 103 |
return to the top page