The TransCompilator

Solved LeetCode program · 893 of 1,000

#1227 · Airplane Seat Assignment Probability

Medium Math chunk-18.md

Original English source

The seats is 2. If seats is 1, show "1.00000", otherwise show "0.50000".

Open in Playground Browse all 1,000 problems

Expected stdout

0.50000