{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003e2019302120031YU 刚刚买了一辆新车,他把车开到加油站准备加油,突然发现油箱上有一把密码锁!但他不知道怎么解锁。锁的刻度为360度,指针一开始指向0。\u003c/p\u003e \n\u003ccenter\u003e \n \u003cimg class\u003d\"tex-graphics\" SRC\u003d\"CDN_BASE_URL/dc861944cffe4d9d99298cd4c72a3294?v\u003d1590409470\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e \n\u003c/center\u003e \n\u003cp\u003e于是2019302120031YU 给他的汽车经销商打了个电话,他的经销商让他把锁准确地转动n次。第 i 次旋转应该是 ai 度,顺时针或逆时针转都可以,n次旋转之后指针应该再次指向0,即可解锁。\u003cbr\u003e\n这让2019302120031YU 有点困惑,他不确定哪次旋转应该顺时针,哪次应该逆时针,因为旋转锁的方法有很多。已知输入的数据是每1次锁应该旋转的度数,请你帮助他判断一下是否至少存在一种旋转方法,在n次旋转之后指针会再次指向0。\n\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第 1 行输入 1 个整数 n (1 \u003c\u003d n \u003c\u003d 15)—— 代表旋转次数。\u003cbr\u003e\n接下来的 n 行里,每 1 行包含 1 个整数 ai (1\u003c\u003dai\u003c\u003d180)—— 代表旋转度数。\n\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e如果做完所有的旋转后,指针能指向0,那么输出一个单词“YES”。否则,输出“NO”。在这种情况下,2019302120031YU 会要求经销商给它换一辆新车。\u003c/p\u003e"}},{"title":"样例","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输入样例1\n \u003c/div\u003e \n \u003cpre\u003e3\n10\n20\n30\n\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输出样例1\n \u003c/div\u003e \n \u003cpre\u003eYES\n\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输入样例2\n \u003c/div\u003e \n \u003cpre\u003e3\n10\n10\n10\n\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输出样例2\n \u003c/div\u003e \n \u003cpre\u003eNO\n\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输入样例3\n \u003c/div\u003e \n \u003cpre\u003e3\n120\n120\n120\n\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n 输出样例3\n \u003c/div\u003e \n \u003cpre\u003eYES\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}