{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eZLGG发现了一个神奇的理论,就是香蕉越大,香蕉皮就越大。这个重要的理论可以帮助他在我们的宇宙中制造一个传送门。不幸的是,制造一对传送门将耗费最小能量{T}。在点V和点U之间的路径中,T是路径中最长边的长度。两点之间可能有很多条路径。现在ZLGG拥有L能量,他想知道他能制造多少种不同的路径。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"有多个测试用例。输入的第一行包含三个整数N、M和Q(1 ≤ N ≤ 10,000,0 ≤ M ≤ 50,000,0 ≤ Q ≤ 10,000)。N是点的数量,M是边的数量,Q是查询的数量。接下来的M行中,每行包含三个整数a、b和c(1 ≤ a, b ≤ N,0 ≤ c ≤ 10^8),描述连接点a和b的边的代价c。接下来的Q行中,每行包含一个整数L(0 ≤ L ≤ 10^8)。"}},{"title":"输出","value":{"format":"HTML","content":"对每个查询,输出一个单独的答案行。"}},{"title":"样例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e10 10 10\r\n7 2 1\r\n6 8 3\r\n4 5 8\r\n5 8 2\r\n2 8 9\r\n6 4 5\r\n2 1 5\r\n8 10 5\r\n7 3 7\r\n7 8 8\r\n10\r\n6\r\n1\r\n5\r\n9\r\n1\r\n8\r\n2\r\n7\r\n6\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e36\r\n13\r\n1\r\n13\r\n36\r\n1\r\n36\r\n2\r\n16\r\n13\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}