{"code":"c2snt","name":"C2SNT - Chia 2 số nguyên tố (HSG'18)","description":"Có 2 số nguyên tố a và b với $a \\ne b$; $b \\ne 2$ và $b \\ne 5$. Tý thực hiện chia $a : b$ thì được một số x là thập phân vô hạn tuần hoàn.\r\n\r\n**Yêu cầu:** \r\n- Cho trước số nguyên dương $n$ ($n \\le 10^{16}$). Hãy tìm chữ số thứ $n$ sau dấu phẩy của số $x$.\r\n\r\n<h4>Input</h4>\r\n\r\n- Dòng thứ nhất chứa số nguyên tố $a (a \\le 1000)$.\r\n- Dòng thứ hai chứa số nguyên tố $b (b \\ne a; b \\ne 2; b \\ne 5; b \\le 1000)$.\r\n- Dòng thứ ba chứa số nguyên dương $n (n \\le 10^{16})$.\r\n\r\n<h4>Output</h4>\r\n\r\n- Ghi ra một chữ số thứ $n$ sau dấu phẩy của số $x$.\r\n\r\n<h4>Example</h4>\r\n\r\n!!! question \"Test 1\"\r\n\r\n    ???+ \"Input\"\r\n\r\n        ```sample\r\n        5\r\n        7\r\n        15\r\n        ```\r\n\r\n    ???+ success \"Output\"\r\n\r\n        ```sample\r\n        4\r\n        ```\r\n        \r\n    ??? warning \"Note\"\r\n\r\n        - x = 5 : 7 = 0,71428571428571**4**285… Chữ số thứ 15 sau dấu phẩy của số x là chữ số 4.","points":200.0,"partial":false,"time_limit":1.0,"memory_limit":512000,"short_circuit":false,"allowed_languages":[3,4,34,36,37,5,6,11,12,14,28,2,38,39,9,18,17,29,23,27,35,25,26,10,7,19,32,1,8,15,16,24,20,33,13,41,21,40],"is_public":true,"is_manually_managed":false,"permissions":{"can_edit":false}}