รับ seed s แล้วรายการคำคั่นด้วยช่องว่างหนึ่งบรรทัด ตั้ง seed แล้วพิมพ์ random.choice ของรายการนั้น
มีอย่างน้อย 1 คำ
1 apple banana cherry
apple
import random s=int(input()) items=input().split() random.seed(s) print(random.choice(items))
กด Run เพื่อรันโค้ด หรือ ตรวจคำตอบ เพื่อตรวจ test cases