{"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\"\u003eThe furthest distance in the world is not the separation of the ends of the earth,\u003cbr\u003ebut when I am in front of you,\u003cbr\u003eand you don\u0027t know that I love you.\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;―― Zhang Xiaoxian\u003cbr\u003e\u003cbr\u003eThe other day, Fengbing Yezhi made a marriage proposal for Whiskey, with a dowry of 5 million. Oh my, it\u0027s an astronomical figure, I wonder how many girls will flock to it. Suddenly, the streets were deserted, and even the old lady who sweeps the floor came to join in the fun. ―_―|||\u003cbr\u003eDue to the large number of people, Whiskey was too busy to handle it all, so he handed over the statistics to Fengbing Yezhi and went home to rest. Fengbing Yezhi was really busy with this, he had to deal with two things: accepting applications from the girls and finding the girl with the highest compatibility with Whiskey.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"There are multiple sets of test data for this problem. The first number, M, indicates that there are M consecutive operations to follow. When M \u003d 0, the processing stops.\u003cbr\u003eNext is an operator C.\u003cbr\u003eWhen the operator is \u0027I\u0027, it means that a girl has applied, followed by an integer, H, indicating height, two floating-point numbers, A indicating liveliness, and L indicating compatibility value. (100\u0026lt;\u003dH\u0026lt;\u003d200, 0.0\u0026lt;\u003dA, L\u0026lt;\u003d100.0)\u003cbr\u003eWhen the operator is \u0027Q\u0027, followed by four floating-point numbers, H1, H2 indicating the height range, A1, A2 indicating the liveliness range, output the highest compatibility value among the girls who meet the height and liveliness requirements. (100\u0026lt;\u003dH1, H2\u0026lt;\u003d200, 0.0\u0026lt;\u003dA1, A2\u0026lt;\u003d100.0)\u003cbr\u003eAll input floating-point numbers have only one decimal place.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each query operation, output the highest compatibility value in one line, with one decimal place reserved.\u003cbr\u003eFor queries that cannot be found, output -1.\u003cbr\u003e"}},{"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\u003e8\r\nI 160 50.5 60.0\r\nI 165 30.0 80.5\r\nI 166 10.0 50.0\r\nI 170 80.5 77.5\r\nQ 150 166 10.0 60.0\r\nQ 166 177 10.0 50.0\r\nI 166 40.0 99.9\r\nQ 166 177 10.0 50.0\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e80.5\r\n50.0\r\n99.9\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}