{"code":"cses1712","name":"CSES - Exponentiation II | Lũy thừa II","description":"Việc của bạn là tính toán hiệu quả giá trị $a^{b^c}$ modulo $10^9 + 7$.\r\n\r\nLưu ý rằng trong bài này, ta cho rằng $0^0 = 1$.\r\n\r\n## Input\r\n- Dòng đầu tiên là một số nguyên $n$: số lượng phép tính.\r\n- Tiếp theo là $n$ dòng, mỗi dòng chứa ba số nguyên $a, b$ và $c$.\r\n\r\n## Output\r\n- In ra từng giá trị $a^{b^c}$ modulo $10^9+7$.\r\n\r\n## Constraints\r\n- $1 \\le n \\le 10^5$\r\n- $1 \\le a,b,c \\le 10^9$\r\n\r\n## Example\r\n**Sample input**\r\n```\r\n3\r\n3 7 1\r\n15 2 2\r\n3 4 5\r\n```\r\n**Sample output**\r\n```\r\n2187\r\n50625\r\n763327764\r\n```","points":1400.0,"partial":true,"time_limit":1.0,"memory_limit":524288,"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}}