Bankers rounding
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Bankers' rounding
Rounding - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Rounding
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
0.5
1.5
2.5
3.5
4.5
5.5
6.5
7.5
8.5
9.5
Sample output:
0
2
2
4
4
6
6
8
8
10
Sample input:_
5.95
52.50
53.32
73.31
96.31
60.32
27.83
81.72
63.00
18.12
23.23
65.33
41.35
17.09
44.35
51.74
3.66
56.99
91.72
11.68
Sample output:
6
52
53
73
96
60
28
82
63
18
23
65
41
17
44
52
4
57
92
12
Sample input:_
175.20
186.70
500.68
229.41
647.53
970.57
888.77
814.21
946.66
800.01
425.47
492.43
869.09
583.34
803.11
634.40
816.48
640.46
369.08
710.79
483.81
102.94
805.91
928.77
202.50
633.88
526.22
906.51
548.96
647.39
235.20
314.22
627.21
770.59
964.39
434.56
640.26
709.00
401.34
87.13
914.44
831.86
178.78
249.34
690.58
985.61
848.15
568.23
757.03
298.19
771.25
572.45
572.69
348.00
503.93
792.98
738.01
710.60
263.66
850.01
81.92
602.04
3.44
716.20
971.44
857.68
370.70
142.84
778.33
73.64
359.07
74.07
341.96
870.53
956.02
287.93
496.27
140.37
455.85
473.98
444.69
452.13
875.05
298.89
952.06
66.62
551.73
379.00
277.79
953.50
519.04
726.26
175.58
764.76
725.43
522.44
394.97
666.16
125.16
577.33
Sample output:
175
187
501
229
648
971
889
814
947
800
425
492
869
583
803
634
816
640
369
711
484
103
806
929
202
634
526
907
549
647
235
314
627
771
964
435
640
709
401
87
914
832
179
249
691
986
848
568
757
298
771
572
573
348
504
793
738
711
264
850
82
602
3
716
971
858
371
143
778
74
359
74
342
871
956
288
496
140
456
474
445
452
875
299
952
67
552
379
278
954
519
726
176
765
725
522
395
666
125
577
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 20 | 0.0610 | 2011/05/02 03:30:32 | 0B / 13B / 7B |
2 | leonid | 20 | 0.0602 | 2011/05/02 06:56:03 | 0B / 13B / 7B |
3 | bk1e | 27 | 0.0495 | 2011/05/07 15:24:13 | 0B / 9B / 15B |
4 | @tttttanaka | 23 | 0.0561 | 2012/03/23 18:39:02 | 1B / 10B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tybalt89 | 21 | 0.0311 | 2011/05/01 23:37:39 | 0B / ?B / ?B |
2 | teebee | 21 | 0.0301 | 2011/05/02 02:38:20 | 0B / 10B / 9B |
3 | twobit | 21 | 0.0355 | 2011/05/02 06:54:31 | 0B / 10B / 9B |
4 | tails | 21 | 0.0330 | 2011/05/02 10:18:41 | 0B / 10B / 9B |
5 | ninjalj | 21 | 0.0254 | 2011/05/03 17:55:42 | 0B / 10B / 9B |
6 | leonid | 21 | 0.0209 | 2011/05/07 05:42:17 | 0B / 10B / 9B |
7 | Joel | 22 | 0.0246 | 2011/05/05 01:47:42 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 40 | 0.9431 | 2011/05/02 04:05:47 | 5B / 19B / 16B |
2 | teebee | 39 | 0.1232 | 2012/01/05 23:05:47 | 5B / 19B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | dico_leque | 34 | 0.1911 | 2011/05/01 15:24:22 | 0B / 24B / 10B |
2 | cddddr | 34 | 0.1884 | 2011/05/01 18:22:17 | 0B / 24B / 10B |
3 | kaki | 34 | 0.1315 | 2011/05/01 20:53:36 | 0B / 24B / 10B |
4 | youz | 34 | 0.1393 | 2011/05/01 22:33:59 | 0B / 24B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kozima | 34 | 0.2387 | 2011/05/01 15:02:20 | 0B / 21B / 11B |
2 | youz | 34 | 0.1684 | 2011/05/01 22:21:50 | 0B / 21B / 11B |
3 | kaki | 34 | 0.1654 | 2011/05/01 23:05:10 | 0B / 24B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | youz | 22 | 6.0176 | 2011/05/01 22:33:25 | 0B / 17B / 5B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 78 | 0.6165 | 2011/05/02 21:47:08 | 0B / 56B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 41 | 0.0270 | 2011/05/01 15:30:57 | 0B / 25B / 16B |
2 | xulapp | 41 | 0.0238 | 2011/05/01 19:46:16 | 0B / 22B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 45 | 0.0586 | 2011/05/02 06:40:22 | 0B / 28B / 16B |
2 | twobit | 41 | 0.0461 | 2012/06/26 05:51:51 | 0B / 24B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 65 | 0.2211 | 2011/05/02 05:19:55 | 0B / 34B / 29B |
2 | teebee | 47 | 0.0874 | 2011/12/30 10:58:06 | 0B / 24B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 39 | 0.0436 | 2012/04/15 09:52:33 | 0B / 21B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 36 | 0.6728 | 2011/05/03 01:37:58 | 12B / 17B / 7B |
2 | teebee | 36 | 0.1070 | 2011/05/03 05:23:03 | 13B / 17B / 6B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 49 | 0.0192 | 2011/05/03 20:48:45 | 0B / 25B / 24B |
2 | inaniwa | 55 | 0.0029 | 2011/05/01 23:42:27 | 0B / 29B / 25B |
3 | teebee | 55 | 0.0027 | 2011/05/02 03:06:50 | 0B / 29B / 25B |
4 | ninjalj | 55 | 0.0193 | 2011/05/03 18:26:20 | 0B / 31B / 23B |
5 | bk1e | 57 | 0.0269 | 2011/05/07 15:43:23 | 0B / 32B / 24B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | m.ukai | 119 | 0.1344 | 2011/05/01 15:01:15 | 0B / 81B / 27B |
2 | kaki | 53 | 0.1550 | 2011/05/10 13:12:53 | 0B / 37B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | dico_leque | 30 | 0.0292 | 2011/05/01 17:40:36 | 0B / 22B / 8B |
2 | kaki | 30 | 0.0270 | 2011/05/02 09:08:26 | 0B / 22B / 8B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 58 | 0.0032 | 2011/05/01 15:26:08 | 0B / 35B / 22B |
2 | *yuko* | 55 | 0.0328 | 2012/11/18 00:45:09 | 0B / 31B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 239 | 0.0200 | 2011/05/01 22:09:13 | 0B / 170B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 48 | 0.4079 | 2011/05/01 16:36:03 | 0B / 27B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 27 | 1.2597 | 2011/05/02 05:10:42 | 0B / 14B / 13B |
2 | inaniwa | 27 | 1.2445 | 2011/05/02 10:27:05 | 0B / 14B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 55 | 2.7539 | 2011/05/02 20:40:55 | 0B / 29B / 25B |
2 | teebee | 39 | 0.3039 | 2011/12/15 00:04:02 | 0B / 24B / 13B |
3 | teebee(pooq) | 48 | 0.4182 | 2011/12/14 15:35:43 | 0B / 27B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 18 | 0.0029 | 2011/05/02 02:40:11 | 0B / 9B / 9B |
2 | twobit | 18 | 0.0589 | 2011/05/02 20:28:36 | 0B / 9B / 9B |
3 | ninjalj | 18 | 0.0356 | 2011/05/03 17:58:18 | 0B / 9B / 9B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | narb | 104 | 0.0260 | 2011/05/04 19:58:00 | 0B / 63B / 41B |
2 | I., S. | 108 | 0.0045 | 2011/05/03 21:32:36 | 0B / 52B / 45B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 29 | 0.0221 | 2011/05/05 04:55:06 | 0B / 17B / 12B |
2 | tails | 27 | 0.0714 | 2012/04/15 14:30:14 | 0B / 15B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 18 | 0.0288 | 2011/05/02 04:09:07 | 0B / 9B / 9B |
2 | twobit | 18 | 0.0160 | 2011/05/03 07:45:43 | 0B / 9B / 9B |
3 | ninjalj | 18 | 0.1324 | 2011/05/03 17:58:28 | 0B / 9B / 9B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 32 | 1.6019 | 2011/05/01 17:59:26 | 0B / 20B / 12B |
2 | pooq | 31 | 0.4571 | 2012/10/25 07:45:34 | 0B / 21B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 13 | 0.1652 | 2011/05/02 03:43:38 | 0B / 6B / 7B |
2 | leonid | 13 | 0.1779 | 2011/05/02 06:58:05 | 0B / 6B / 7B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 53 | 8.5285 | 2011/05/01 17:38:13 | 0B / 41B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 41 | 0.0482 | 2011/05/02 03:17:53 | 0B / 27B / 9B |
2 | teebee | 35 | 0.0218 | 2011/06/18 23:03:31 | 0B / 25B / 5B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Burlesque | mroman | 7 | 10000 |
2 | Jelly | Erik the Outgolfer | 7 | 10000 |
3 | goruby | teebee | 13 | 5384 |
4 | FlogScript | milieu | 13 | 5384 |
5 | K | teebee | 15 | 4666 |
6 | AWK | teebee | 18 | 3888 |
7 | xgawk | teebee | 18 | 3888 |
8 | Ruby | teebee | 20 | 3500 |
9 | J | I., S.(J R6 only) | 21 | 3333 |
10 | Perl | tybalt89 | 21 | 3333 |
11 | Arc | youz | 22 | 3181 |
12 | Python | teebee | 26 | 2692 |
13 | Octave | teebee | 27 | 2592 |
14 | dc | tails | 27 | 2592 |
15 | Haskell | dico_leque | 30 | 2333 |
16 | R | pooq | 31 | 2258 |
17 | BASIC | *yuko* | 33 | 2121 |
18 | Common LISP | kozima | 34 | 2058 |
19 | Scheme | dico_leque | 34 | 2058 |
20 | Logo | teebee | 35 | 2000 |
21 | A+ | twobit | 36 | 1944 |
22 | Asymptote | teebee | 39 | 1794 |
23 | PHP | teebee | 39 | 1794 |
24 | REXX | pooq | 39 | 1794 |
25 | Tcl | teebee | 40 | 1750 |
26 | JavaScript | nn | 41 | 1707 |
27 | Lua | twobit | 41 | 1707 |
28 | Scala | murky-satyr | 44 | 1590 |
29 | REBOL | teebee | 45 | 1555 |
30 | Xtal | teebee | 47 | 1489 |
31 | Maxima | pooq | 48 | 1458 |
32 | C | nn | 49 | 1428 |
33 | Groovy | nn | 53 | 1320 |
34 | OCaml | kaki | 53 | 1320 |
35 | Fortran | *yuko* | 55 | 1272 |
36 | Kite | teebee | 75 | 933 |
37 | Io | pooq | 78 | 897 |
38 | Pascal | *yuko* | 82 | 853 |
39 | sed | narb | 104 | 673 |
40 | Java | teebee | 123 | 569 |
41 | COBOL | *yuko* | 239 | 292 |
return to the top page