[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-151080-en":3,"doc-seo-151080-105":30,"detail-sidebar-cat-0-en-105":88},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},151080,687197207639,"Asher","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",19,"General","10865 Brownie Points I","This document describes a game called \"Odd Brownie Points\" played on a 2D plane with integer coordinates. The game involves two players, Stan and Ollie, who take turns placing lines and scoring points based on the distribution of brownie points in the four quadrants formed by their lines. Stan places a vertical line through a brownie point, and Ollie then places a horizontal line that intersects Stan's line at a brownie point. Uncrossed brownie points in specific quadrants award points to each player. The document outlines the input format, which includes the number of brownie points and their coordinates, followed by a test case ending marker. It also specifies the output format, requiring Stan's score and Ollie's score for each test case, based on their chosen intersection point.","10865 Brownie Points I  \nStan and Ollie play the game of Odd Brownie Points. Some brownie points are located in the plane, at integer coordinates. Stan plays first and places a vertical line in the plane. The line must go through a brownie point and may cross many (with the same xcoordinate) . Then Ollie places a horizontal line that must cross a brownie point already crossed by the vertical line.  \nThose lines divide the plane into four quadrants. The quadrant containing points with arbitrarily large positive coordinates is the top-right quadrant.  \nThe players score according to the number of brownie points in the quadrants. If a brownie point is crossed by a line, it doesn’t count.  \nStan gets a point for each (uncrossed) brownie point in the top-right and bottom-left quadrants. Ollie gets a point for each (uncrossed) brownie point in the top-left and bottom-right quadrants.  \nYour task is to compute the scores of Stan and Ollie given the point through which they draw their lines.  \nInput  \nInput contains a number of test cases. The data of each test case appear on a sequence of input lines. The first line of each test case contains a positive odd integer 1 \u003C n \u003C 200000 which is the number of brownie points. Each of the following n lines contains two integers, the horizontal (x) and vertical (y) coordinates of a brownie point. No two brownie points occupy the same place. The input ends with aline containing ‘0’ (instead of the n of a test) .  \nOutput  \nFor each test case of input, print a line with two numbers separated by a single space. The first number is Stan’s score, the second is the score of Ollie when their lines cross the point whose coordinates are given at the center of the input sequence of points for this case.  \nSample Input  \n11  \n3 2 3 3 3 4 3 6 2-2 1 -3  \n0 0  \n-3-2 -3-4  \n3-70  \nSample Output  \n6 3","cbCaicJJ15dwW3sC","https://ap.wps.com/l/cbCaicJJ15dwW3sC","pdf",45087,1,2,"English","en",105,"","[{\"question\":\"What is the objective of the \\\"Odd Brownie Points\\\" game?\",\"answer\":\"The objective is to score points based on the number of uncrossed brownie points in different quadrants of a 2D plane after Stan draws a vertical line and Ollie draws a horizontal line intersecting it.\"},{\"question\":\"How are points awarded in the game?\",\"answer\":\"Stan scores for uncrossed points in the top-right and bottom-left quadrants, while Ollie scores for uncrossed points in the top-left and bottom-right quadrants. Points on the lines do not count.\"},{\"question\":\"What is the input format for the game?\",\"answer\":\"The input starts with the number of brownie points (n), followed by n lines each containing the x and y coordinates of a brownie point. The input ends with a line containing '0'.\"}]","10865 Brownie Points I | PDF",1787832433,3,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":25,"description":14,"schema_data":34,"social_meta":83,"head_meta":85,"extra_data":87,"updated_unix":28},"10865-brownie-points-i",{"@graph":35,"@context":82},[36,51,65],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,46,48],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":21},"https://docshare.wps.com/document/","Document",{"item":47,"name":12,"@type":42,"position":29},"https://docshare.wps.com/document/general/",{"item":49,"name":13,"@type":42,"position":50},"https://docshare.wps.com/document/10865-brownie-points-i/151080/",4,{"url":49,"name":13,"@type":52,"author":53,"headline":13,"publisher":55,"fileFormat":58,"inLanguage":23,"description":14,"dateModified":59,"datePublished":59,"encodingFormat":58,"isAccessibleForFree":60,"interactionStatistic":61},"DigitalDocument",{"name":9,"@type":54},"Person",{"url":40,"name":56,"@type":57},"DocShare","Organization","application/pdf","2026-08-27",true,{"@type":62,"interactionType":63,"userInteractionCount":4},"InteractionCounter",{"@type":64},"ViewAction",{"@type":66,"mainEntity":67},"FAQPage",[68,74,78],{"name":69,"@type":70,"acceptedAnswer":71},"What is the objective of the \"Odd Brownie Points\" game?","Question",{"text":72,"@type":73},"The objective is to score points based on the number of uncrossed brownie points in different quadrants of a 2D plane after Stan draws a vertical line and Ollie draws a horizontal line intersecting it.","Answer",{"name":75,"@type":70,"acceptedAnswer":76},"How are points awarded in the game?",{"text":77,"@type":73},"Stan scores for uncrossed points in the top-right and bottom-left quadrants, while Ollie scores for uncrossed points in the top-left and bottom-right quadrants. Points on the lines do not count.",{"name":79,"@type":70,"acceptedAnswer":80},"What is the input format for the game?",{"text":81,"@type":73},"The input starts with the number of brownie points (n), followed by n lines each containing the x and y coordinates of a brownie point. The input ends with a line containing '0'.","https://schema.org",{"og:url":49,"og:type":84,"og:title":13,"og:site_name":56,"og:description":14},"article",{"robots":86,"canonical":49},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":89},[90,94,98,102,107,112,117,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":91,"show_sort_weight":92,"slug":93},"Story & Novel",90,"story-novel",{"id":21,"doc_module":4,"doc_module_name":45,"category_name":95,"show_sort_weight":96,"slug":97},"Literature",80,"literature",{"id":50,"doc_module":4,"doc_module_name":45,"category_name":99,"show_sort_weight":100,"slug":101},"Exam",70,"exam",{"id":103,"doc_module":4,"doc_module_name":45,"category_name":104,"show_sort_weight":105,"slug":106},5,"Comic",60,"comic",{"id":108,"doc_module":4,"doc_module_name":45,"category_name":109,"show_sort_weight":110,"slug":111},6,"Technology",50,"technology",{"id":113,"doc_module":4,"doc_module_name":45,"category_name":114,"show_sort_weight":115,"slug":116},7,"Healthcare",40,"healthcare",{"id":118,"doc_module":4,"doc_module_name":45,"category_name":119,"show_sort_weight":120,"slug":121},8,"Research & Report",30,"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":103,"slug":135},"general"]