{"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\"\u003e$wls$ 有一个钟表,当前钟表指向了某一个时间。\u003cbr\u003e又有一些很重要的时刻,$wls$ 想要在钟表上复现这些时间(并不需要依次复现)。我们可以顺时针转动秒针,也可以逆时针转动秒针,分针和时针都会随着秒针按规则转动,$wls$ 想知道秒针至少转动多少角度可以使每个时刻至少都会被访问一次。\u003cbr\u003e注意,时钟上的一种时针分针秒针的组合,可以代表两个不同的时间。\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"第一行一个整数 $n$ 代表有多少个时刻要访问。\u003cbr\u003e第二行三个整数 $h$,$m$,$s$ 分别代表当前时刻的时分秒。\u003cbr\u003e最后n行每一行三个整数 $h_i$,$m_i$,$s_i$ 代表每个要访问的时刻的时分秒。\u003cbr\u003e1 ≤ $n$ ≤ 86, 400\u003cbr\u003e0 ≤ $h$, $h_i$ \u0026lt; 24\u003cbr\u003e0 ≤ $m$, $m_i$, $s$, $s_i$ \u0026lt; 60"}},{"title":"Output","value":{"format":"HTML","content":"输出一行一个数代表秒钟转的角度,答案保留两位小数。"}},{"title":"Sample","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\u003e1\r\n0 1 0\r\n0 1 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e6.00\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}