Chicken wings prices

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

How much do N chicken wings cost on this weird Chinese restaurant menu? https://www.boredpanda.com/chicken-wing-pricing-structure-math-graps-formulas

CSV (credit ბიმო): https://pastebin.com/2P3ZECcA
Similar CGCC challenge but optimizing price by splitting: https://codegolf.stackexchange.com/questions/174808/optimize-my-wings-order

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
35
40
45
50
60
70
75
80
90
100
125
150
200

Sample output:

4.55
5.70
6.80
7.95
9.10
10.20
11.35
12.50
13.60
14.75
15.90
17.00
18.15
19.30
20.40
21.55
22.70
23.80
24.95
26.10
27.25
27.80
28.95
30.10
31.20
32.35
33.50
39.15
44.80
50.50
55.60
67.00
78.30
83.45
89.10
100.45
111.25
139.00
166.85
222.50

Sample input:_

80
40
45
5
16
23
12
35
24
26
20
45
4
28
27
150
15
4
75
21
20
14
17
45
15
22
19
26
12
17
5
6
90
26
20
22
12
125
70
90
80
15
70
150
90
12
12
15
17
9
27
16
19
12
9
125
60
125
19
75
5
28
19
8
22
17
12
18
150
10
12
90
4
23
125
22
24
70
40
14
28
19
7
21
6
12
7
29
125
11
17
40
11
27
18
16
16
90
60
23

Sample output:

89.10
44.80
50.50
5.70
18.15
26.10
13.60
39.15
27.25
28.95
22.70
50.50
4.55
31.20
30.10
166.85
17.00
4.55
83.45
23.80
22.70
15.90
19.30
50.50
17.00
24.95
21.55
28.95
13.60
19.30
5.70
6.80
100.45
28.95
22.70
24.95
13.60
139.00
78.30
100.45
89.10
17.00
78.30
166.85
100.45
13.60
13.60
17.00
19.30
10.20
30.10
18.15
21.55
13.60
10.20
139.00
67.00
139.00
21.55
83.45
5.70
31.20
21.55
9.10
24.95
19.30
13.60
20.40
166.85
11.35
13.60
100.45
4.55
26.10
139.00
24.95
27.25
78.30
44.80
15.90
31.20
21.55
7.95
23.80
6.80
13.60
7.95
32.35
139.00
12.50
19.30
44.80
12.50
30.10
20.40
18.15
18.15
100.45
67.00
26.10

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o750.03372022/01/02 20:33:520B / 38B / 34B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o750.11712022/01/02 20:33:390B / 38B / 34B

Perl _

RankUserSizeTimeDateStatistics
1tails590.03072022/01/04 15:29:200B / 30B / 28B

Python _

RankUserSizeTimeDateStatistics
1xnor800.06122022/01/02 18:29:280B / 42B / 37B

C _

RankUserSizeTimeDateStatistics
1tails920.02712022/01/04 14:47:271B / 46B / 45B
2rotary-o930.02972022/01/02 20:10:530B / 48B / 45B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1650.16752022/01/02 20:10:430B / 103B / 56B

sed _

RankUserSizeTimeDateStatistics
1tails2450.04032022/01/04 18:30:410B / 149B / 84B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails820.05582022/01/04 16:10:520B / 40B / 37B
2McBusLuck960.15832022/01/01 03:40:220B / 45B / 44B

Whitespace _

RankUserSizeTimeDateStatistics
1rotary-o2760.04242022/01/02 20:38:580B / 0B / 0B

gs2 _

RankUserSizeTimeDateStatistics
1tails400.16792022/01/04 17:02:5118B / 16B / 4B
2whio410.14752022/01/05 07:24:4921B / 15B / 5B
3whio(tails)390.14682022/01/06 15:13:4719B / 14B / 3B

Nibbles _

RankUserSizeTimeDateStatistics
1darrenks290.03402022/01/05 05:35:2522B / ?B / ?B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o855.76572022/01/02 20:11:580B / 51B / 32B

Language Ranking_

RankLangUserSizeScore
1Nibblesdarrenks2910000
2gs2whio(tails)397435
3Perltails594915
4Ruby2rotary-o753866
5Rubyrotary-o753866
6Pythonxnor803625
7Bash (builtins)tails823536
8Scalarotary-o853411
9Ctails923152
10Javarotary-o1651757
11sedtails2451183
12Whitespacerotary-o2761050

return to the top page