{"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\"\u003ebackground:\u003cbr\u003e A new semester comes , and the HDU also meets its 50th birthday. No matter what\u0027s your major, the only thing I want to tell you is:\"Treasure the college life and seize the time.\" Most people thought that the college life should be colorful, less presure.But in actual, the college life is also busy and rough. If you want to master the knowledge learned from the book, a great deal of leisure time should be spend on individual study and practise, especially on the latter one. I think the every one of you should take the learning attitude just as you have in senior school.\u003cbr\u003e \"No pain, No Gain\", HDU also has scholarship, who can win it? That\u0027s mainly rely on the GPA(grade-point average) of the student had got. Now, I gonna tell you the rule, and your task is to program to caculate the GPA.\u003cbr\u003e If there are K(K \u0026gt; 0) courses, the i-th course has the credit Ci, your score Si, then the result GPA is\u003cbr\u003e GPA \u003d (C1 * S1 + C2 * S2 +……+Ci * Si……) / (C1 + C2 + ……+ Ci……) (1 \u0026lt;\u003d i \u0026lt;\u003d K, Ci !\u003d 0)\u003cbr\u003e If there is a 0 \u0026lt;\u003d Si \u0026lt; 60, The GPA is always not existed. \u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first number N indicate that there are N test cases(N \u0026lt;\u003d 50). In each case, there is a number K (the total courses number), then K lines followed, each line would obey the format: Course-Name (Length \u0026lt;\u003d 30) , Credits(\u0026lt;\u003d 10), Score(\u0026lt;\u003d 100).\u003cbr\u003eNotice: There is no blank in the Course Name. All the Inputs are legal"}},{"title":"Output","value":{"format":"HTML","content":"Output the GPA of each case as discribed above, if the GPA is not existed, ouput:\"Sorry!\", else just output the GPA value which is rounded to the 2 digits after the decimal point. There is a blank line between two test cases. \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\u003e2\r\n3\r\nAlgorithm 3 97\r\nDataStruct 3 90\r\nsoftwareProject 4 85\r\n2\r\nDatabase 4 59\r\nEnglish 4 81\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e90.10\r\n\r\nSorry!\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}