Integer Ranges

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Given the bit size output the integer ranges.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

1
12
3
4
7
12
9
10
10
14
13
9
6
5
32
16
18
23
25
27
29

Sample output:

-1 to 0
-2048 to 2047
-4 to 3
-8 to 7
-64 to 63
-2048 to 2047
-256 to 255
-512 to 511
-512 to 511
-8192 to 8191
-4096 to 4095
-256 to 255
-32 to 31
-16 to 15
-2147483648 to 2147483647
-32768 to 32767
-131072 to 131071
-4194304 to 4194303
-16777216 to 16777215
-67108864 to 67108863
-268435456 to 268435455

Sample input:_

32
16

Sample output:

-2147483648 to 2147483647
-32768 to 32767

Sample input:_

1
12
3
4
7
12
9
10
10
14
13
9
6
5
32
16
18
23
25
27
291
12
3
1
12
3
4
7
12
9
10
10
14
13
9
6
5
32
16
18
23
25
27
29
18
23
25
27
291
12
3
4
7
12
9
10
10
14
13
9
6
5
32
16
18
23
25
27
29

Sample output:

-1 to 0
-2048 to 2047
-4 to 3
-8 to 7
-64 to 63
-2048 to 2047
-256 to 255
-512 to 511
-512 to 511
-8192 to 8191
-4096 to 4095
-256 to 255
-32 to 31
-16 to 15
-2147483648 to 2147483647
-32768 to 32767
-131072 to 131071
-4194304 to 4194303
-16777216 to 16777215
-67108864 to 67108863
-4 to 3
-2048 to 2047
-4 to 3
-1 to 0
-2048 to 2047
-4 to 3
-8 to 7
-64 to 63
-2048 to 2047
-256 to 255
-512 to 511
-512 to 511
-8192 to 8191
-4096 to 4095
-256 to 255
-32 to 31
-16 to 15
-2147483648 to 2147483647
-32768 to 32767
-131072 to 131071
-4194304 to 4194303
-16777216 to 16777215
-67108864 to 67108863
-268435456 to 268435455
-131072 to 131071
-4194304 to 4194303
-16777216 to 16777215
-67108864 to 67108863
-4 to 3
-2048 to 2047
-4 to 3
-8 to 7
-64 to 63
-2048 to 2047
-256 to 255
-512 to 511
-512 to 511
-8192 to 8191
-4096 to 4095
-256 to 255
-32 to 31
-16 to 15
-2147483648 to 2147483647
-32768 to 32767
-131072 to 131071
-4194304 to 4194303
-16777216 to 16777215
-67108864 to 67108863
-268435456 to 268435455

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1kaki450.05942011/05/02 10:04:020B / 24B / 19B
2bk1e500.04802011/05/08 05:58:550B / 21B / 26B
3rockhyrax610.05452011/05/12 12:29:210B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails350.02362011/05/02 10:34:270B / 11B / 22B
2teebee350.03492011/05/03 06:59:240B / 11B / 22B
3ninjalj370.02762011/05/03 16:58:350B / 14B / 21B
4jonathan camacho520.03292015/04/29 13:08:210B / 19B / 29B

Python _

RankUserSizeTimeDateStatistics
1ninjalj420.08052011/04/29 23:59:490B / 26B / 15B
2hallvabo (output for 291 in last testcase is wrong)420.07752011/04/30 00:20:430B / 26B / 15B
3kaki420.10042011/05/02 09:44:220B / 26B / 15B
4evilbungle450.08352011/05/05 01:41:410B / ?B / ?B
5recursive1660.07772011/04/29 02:41:450B / 117B / 17B

Scheme _

RankUserSizeTimeDateStatistics
1dico_leque600.18902011/05/02 04:42:170B / 31B / 23B
2kaki600.19202011/05/02 09:37:440B / 30B / 23B
3cddddr640.12042011/05/02 05:26:480B / 33B / 26B
4kaki570.10702013/03/25 06:45:410B / 27B / 26B
5cddddr(dico_leque,kaki)590.18842011/05/19 14:37:100B / 30B / 23B

Io _

RankUserSizeTimeDateStatistics
1pooq810.22972012/11/13 17:15:030B / 55B / 20B

JavaScript _

RankUserSizeTimeDateStatistics
1nn440.05062011/05/11 15:32:300B / 25B / 19B
2_430.03712011/05/14 12:19:140B / 24B / 19B

Lua _

RankUserSizeTimeDateStatistics
1pooq580.03632011/11/01 19:07:470B / 31B / 24B

Tcl _

RankUserSizeTimeDateStatistics
1pooq680.04312011/05/23 21:05:490B / 38B / 20B

Icon _

RankUserSizeTimeDateStatistics
1teebee(pooq)660.02662012/04/04 01:19:410B / 39B / 22B
2pooq680.05192012/04/03 19:31:280B / 39B / 24B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee420.09422012/03/26 01:52:470B / 26B / 14B

Cyan _

RankUserSizeTimeDateStatistics
1pooq743.64212011/10/08 01:16:200B / 32B / 40B

Prolog _

RankUserSizeTimeDateStatistics
1teebee(pooq)600.17902012/03/15 09:54:320B / 28B / 29B
2pooq670.16212012/03/05 11:33:030B / 33B / 28B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*650.02502011/04/30 11:57:120B / 36B / 26B

Erlang _

RankUserSizeTimeDateStatistics
1ali1580.75522011/05/12 14:49:270B / 82B / 59B
2ali1360.75262011/05/13 03:27:060B / 69B / 55B

J _

RankUserSizeTimeDateStatistics
1I., S.550.09982011/05/07 06:03:140B / 18B / 35B
2I., S.(was silly)490.18222011/05/17 06:13:430B / 19B / 28B

K _

RankUserSizeTimeDateStatistics
1teebee420.02832012/07/04 16:09:190B / 13B / 27B

C _

RankUserSizeTimeDateStatistics
1inaniwa640.00652011/05/03 14:18:180B / 32B / 30B
2kou640.02982011/05/09 10:07:260B / 33B / 29B
3nn640.01922011/05/11 15:20:380B / 33B / 29B
4koi670.00222011/05/11 02:32:170B / ?B / ?B
5bk1e730.01862011/05/07 16:21:010B / 37B / 34B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai860.12632011/04/30 16:33:390B / 48B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1rst76760.03062011/05/12 01:39:450B / 46B / 25B
2kaki780.03522011/05/12 12:58:070B / 43B / 32B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*870.00262011/04/29 18:55:140B / 58B / 23B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*630.02892011/04/29 18:58:090B / 37B / 23B
2*yuko*610.03992011/12/03 01:20:190B / 35B / 23B

Maxima _

RankUserSizeTimeDateStatistics
1pooq730.53502011/06/04 06:06:441B / 34B / 34B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee580.43142011/12/17 09:39:080B / 33B / 22B

AWK _

RankUserSizeTimeDateStatistics
1eban420.00292011/04/28 18:09:540B / 19B / 21B
2ninjalj420.01502011/04/29 17:47:200B / 19B / 21B
3ninjalj400.01542011/05/12 17:06:260B / 19B / 19B

Bash _

RankUserSizeTimeDateStatistics
1eban520.04782011/04/28 17:05:230B / 22B / 21B
2ninjalj520.43272011/04/29 23:51:430B / 25B / 20B
3narb330.14492011/05/23 17:04:140B / 20B / 10B
4eban470.08072011/05/23 16:49:360B / 20B / 18B
5ninjalj(eban)480.06052011/05/12 17:10:360B / 22B / 19B

Zsh _

RankUserSizeTimeDateStatistics
1ninjalj520.65922011/04/29 23:51:540B / 25B / 20B

Fish _

RankUserSizeTimeDateStatistics
1ninjalj520.73052011/04/29 23:52:050B / 25B / 20B

dc _

RankUserSizeTimeDateStatistics
1tails340.00472011/05/05 14:06:390B / 21B / 11B
2ninjalj360.02092011/04/29 17:07:150B / 21B / 13B

xgawk _

RankUserSizeTimeDateStatistics
1ninjalj280.00552011/04/29 18:45:130B / 10B / 16B

R _

RankUserSizeTimeDateStatistics
1pooq620.89572011/08/21 08:42:480B / 33B / 27B

Whitespace _

RankUserSizeTimeDateStatistics
1%201700.05272015/07/18 02:43:360B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1kaki480.01012011/05/11 01:16:210B / 10B / 32B

GolfScript _

RankUserSizeTimeDateStatistics
1narb230.15602011/05/09 16:11:310B / 6B / 15B
2kaki230.15992011/05/11 12:37:160B / 6B / 15B
3nooodl240.15462011/05/09 02:17:170B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1whio160.18192017/08/05 04:55:595B / 6B / 4B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik330.34882015/04/29 11:48:080B / 14B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1nn586.39742011/05/11 15:27:320B / 37B / 16B

Logo _

RankUserSizeTimeDateStatistics
1teebee600.03522011/05/09 05:15:230B / 37B / 17B

Language Ranking_

RankLangUserSizeScore
1gs2whio1610000
2GolfScriptnarb236956
3xgawkninjalj285714
4Bashnarb334848
5BurlesqueHendrik334848
6dctails344705
7Perltails354571
8AWKninjalj404000
9Pythonninjalj423809
10PARI/GPteebee423809
11Kteebee423809
12JavaScript433720
13Rubykaki453555
14Befungekaki483333
15JI., S.(was silly)493265
16Zshninjalj523076
17Fishninjalj523076
18Schemekaki572807
19Groovynn582758
20Luapooq582758
21Asymptoteteebee582758
22Logoteebee602666
23Prologteebee(pooq)602666
24Fortran*yuko*612622
25Rpooq622580
26Cinaniwa642500
27BASIC*yuko*652461
28Iconteebee(pooq)662424
29Tclpooq682352
30Maximapooq732191
31Cyanpooq742162
32Haskellrst76762105
33Iopooq811975
34OCamlm.ukai861860
35Pascal*yuko*871839
36Erlangali1361176
37Whitespace%20170941

return to the top page