Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 35 characters in body
Source Link
Leaky Nun
  • 50.6k
  • 6
  • 115
  • 291

PythPyth, (削除) 88 (削除ここまで) (削除) 86 (削除ここまで) 84 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median ((削除) 23 (削除ここまで) 21 bytes)

(削除) .O,hJ.x.<S*2K.n]QlK]0eJ (削除ここまで)
.O<.x.<S*2K.n]QtlK]02

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

(削除) AQu.ncRHGG]H (削除ここまで)
u.ncRHGQ]E

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

Pyth, (削除) 88 (削除ここまで) (削除) 86 (削除ここまで) 84 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median ((削除) 23 (削除ここまで) 21 bytes)

(削除) .O,hJ.x.<S*2K.n]QlK]0eJ (削除ここまで)
.O<.x.<S*2K.n]QtlK]02

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

(削除) AQu.ncRHGG]H (削除ここまで)
u.ncRHGQ]E

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

Pyth, (削除) 88 (削除ここまで) (削除) 86 (削除ここまで) 84 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median ((削除) 23 (削除ここまで) 21 bytes)

(削除) .O,hJ.x.<S*2K.n]QlK]0eJ (削除ここまで)
.O<.x.<S*2K.n]QtlK]02

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

(削除) AQu.ncRHGG]H (削除ここまで)
u.ncRHGQ]E

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

added 58 characters in body
Source Link
Leaky Nun
  • 50.6k
  • 6
  • 115
  • 291

Pyth, 88(削除) 88 (削除ここまで)(削除) 86 (削除ここまで) 84 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median (23(削除) 23 (削除ここまで) 21 bytes)

.O,hJ.x.<S*2K.n]QlK]0eJ
(削除) .O,hJ.x.<S*2K.n]QlK]0eJ (削除ここまで)
.O<.x.<S*2K.n]QtlK]02

Test suite. Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

AQu.ncRHGG]H
(削除) AQu.ncRHGG]H (削除ここまで)
u.ncRHGQ]E

Test suite. Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

Pyth, 88 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median (23 bytes)

.O,hJ.x.<S*2K.n]QlK]0eJ

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

AQu.ncRHGG]H

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

Pyth, (削除) 88 (削除ここまで)(削除) 86 (削除ここまで) 84 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median ((削除) 23 (削除ここまで) 21 bytes)

(削除) .O,hJ.x.<S*2K.n]QlK]0eJ (削除ここまで)
.O<.x.<S*2K.n]QtlK]02

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

(削除) AQu.ncRHGG]H (削除ここまで)
u.ncRHGQ]E

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

Source Link
Leaky Nun
  • 50.6k
  • 6
  • 115
  • 291

Pyth, 88 bytes

Problem 1: Mean (6 bytes)

.O.n]Q

Test suite.

Problem 2: Median (23 bytes)

.O,hJ.x.<S*2K.n]QlK]0eJ

Test suite.

Problem 3: Mode (7 bytes)

{.x.M/Q

Test suite.

Problem 4: Interleave (3 bytes)

.iF

Test suite.

Problem 5: Unique (7 bytes)

fq1/QTQ

Test suite.

Problem 6: Sort (6 bytes)

ol.n]N

Test suite.

Problem 7: Divisibility (10 bytes)

f!*%T3%T5Q

Test suite.

Problem 8: Separate (10 bytes)

,Jf<T0Q-QJ

Test suite.

Problem 9: Split (12 bytes)

AQu.ncRHGG]H

Test suite.

Problem 10: Dot-product (4 bytes)

s*VF

Test suite.

AltStyle によって変換されたページ (->オリジナル) /