ท้าทาย
รับจำนวนเต็ม, , เป็นอินพุตโดยที่เอาท์พุทค่าของ (โดยที่หมายถึงRiemann Zeta Function )
ข้อมูลเพิ่มเติม
ถูกกำหนดเป็น:
คุณควรส่งคำตอบไปที่ทศนิยม 5 ตำแหน่ง (ไม่มากไม่น้อย) ถ้าคำตอบออกมาเป็นอินฟินิตี้คุณควรเอาท์พุทหรือเทียบเท่าในภาษาของคุณ
บิวด์อิน Riemann Zeta ได้รับอนุญาต แต่ก็สนุกน้อยกว่าที่จะทำเช่นนั้น;)
ตัวอย่าง
ผลลัพธ์จะต้องตรงตามที่แสดงด้านล่าง
Input -> Output
1 -> ∞ or inf etc.
2 -> 1.64493
3 -> 1.20206
4 -> 1.08232
8 -> 1.00408
19 -> 1.00000
เงินรางวัล
ในฐานะที่เป็นปลอบใจที่อนุญาตให้มีบิวด์อินฉันจะเสนอ 100-rep ค่าหัวให้แก่คำตอบที่สั้นที่สุดซึ่งไม่ได้ใช้ฟังก์ชันซีตาในตัว (เครื่องหมายถูกสีเขียวจะยังคงเป็นโซลูชันที่สั้นที่สุดโดยรวม)
การชนะ
รหัสที่สั้นที่สุดในหน่วยไบต์ชนะ
19
จริง1.00000
หรือไม่ จะไม่1
หรือ1.0
ถูกต้อง? ดูเหมือนว่าคุณได้ทำให้มันกลายเป็นความท้าทายกิ้งก่า