{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eTakahashi had \u003cvar\u003e\\(N\\)\u003c/var\u003e glasses of liquor.\u003c/p\u003e\r\n\u003cp\u003eThe amount and alcohol percentage of the \u003cvar\u003e\\(i\\)\u003c/var\u003e-th liquor were \u003cvar\u003e\\(V_i\\)\u003c/var\u003e milliliters and \u003cvar\u003e\\(P_i\\)\u003c/var\u003e percent by volume, respectively.\u003c/p\u003e\r\n\u003cp\u003eTakahashi gets drunk when his alcohol intake exceeds \u003cvar\u003e\\(X\\)\u003c/var\u003e milliliters.\u003c/p\u003e\r\n\u003cp\u003eWhich of the \u003cvar\u003e\\(N\\)\u003c/var\u003e liquors was he drinking when he gets drunk? If he was not drunk even after drinking all the liquors, print \u003ccode\u003e-1\u003c/code\u003e instead.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Constraints","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eAll values in input are integers.\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq N \\leq 10^3\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(0 \\leq X \\leq 10^6\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq V_i \\leq 10^3\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(0 \\leq P_i \\leq 100\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Input","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eInput is given from Standard Input in the following format:\u003c/p\u003e\r\n\u003cpre\u003e\u003cvar\u003e\\(N\\)\u003c/var\u003e \u003cvar\u003e\\(X\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(V_1\\)\u003c/var\u003e \u003cvar\u003e\\(P_1\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(\\vdots\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(V_N\\)\u003c/var\u003e \u003cvar\u003e\\(P_N\\)\u003c/var\u003e\r\n\u003c/pre\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Output","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eIf Takahashi got drunk when drinking the \u003cvar\u003e\\(i\\)\u003c/var\u003e-th liquor, print \u003cvar\u003e\\(i\\)\u003c/var\u003e. If he was not drunk even after drinking all the liquors, print \u003ccode\u003e-1\u003c/code\u003e instead.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 1","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\u003e2 15\r\n200 5\r\n350 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\u003cp\u003eThe \u003cvar\u003e\\(1\\)\u003c/var\u003e-st liquor contains \u003cvar\u003e\\(200\\times \\dfrac{5}{100}\u003d10\\)\u003c/var\u003e milliliters of alcohol.\u003c/p\u003e\r\n\u003cp\u003eThe \u003cvar\u003e\\(2\\)\u003c/var\u003e-nd liquor contains \u003cvar\u003e\\(350\\times \\dfrac{3}{100}\u003d10.5\\)\u003c/var\u003e milliliters of alcohol.\u003c/p\u003e\r\n\u003cp\u003eHis alcohol intake exceeds \u003cvar\u003e\\(15\\)\u003c/var\u003e milliliters for the first time when drinking the \u003cvar\u003e\\(2\\)\u003c/var\u003e-nd liquor.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 2","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\u003e2 10\r\n200 5\r\n350 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\u003cp\u003eWhen his alcohol intake is exactly \u003cvar\u003e\\(X\\)\u003c/var\u003e milliliters, he is still not drunk.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 3","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\u003e3 1000000\r\n1000 100\r\n1000 100\r\n1000 100\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e-1\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\u003cp\u003eHe seems to be immune to alcohol.\u003c/p\u003e\u003c/section\u003e\r\n"}}]}