{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"求2^2^2^.....无限个2 mod p的值,其中^表示乘方\n\n![](CDN_BASE_URL/8455e6fcee1bb24dfce565c190ecbff5?v\u003d1587765821)"}},{"title":"Input","value":{"format":"MD","content":"\u003cdiv\u003e\n第一行输入正整数T,接下来T行,每行一个正整数p,代表你需要取模的值\n\u003c/div\u003e \n\u003cp\u003e\u003c/p\u003e"}},{"title":"Output","value":{"format":"MD","content":"\u003cdiv\u003e\n T行,每行一个正整数,为答案对p取模后的值\n\u003c/div\u003e \n\u003cp\u003e\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"MD","content":"```\n3\n2\n3\n6\n```"}},{"title":"Sample Output","value":{"format":"MD","content":"```\n0\n1\n4\n```"}},{"title":"Hint","value":{"format":"MD","content":"\u003cp\u003e\u003c/p\u003e\n\u003cdiv\u003e\n 对于100%的数据,T\u0026lt;\u003d1000,p\u0026lt;\u003d10^7\n\u003c/div\u003e\n\u003cbr\u003e \n\u003cdiv\u003e\u003c/div\u003e\n\u003cbr\u003e \n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e"}}]}