{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"hlce","formal_name":"Humanity's Last Code Exam","introduction":"ICPC World FinalsとIOIの競技プログラミング問題を使い、問題解決とコード生成の能力を評価します。公式紹介では235問を収録し、今回の取得は公開ICPCデータ146問を対象とします。\n\nHumanity's Last Code Exam evaluates problem solving and code generation using ICPC World Finals and IOI problems. The project describes 235 problems; this import selects its public ICPC dataset of 146 problems.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://humanity-s-last-code-exam.github.io/website/","indexing_mode":"noindex"},"task_id":"22e3cc13-274a-57dc-a7c5-58af8186e363","task_key":"ICPC~2dWorld~2dFinals--examples--2012~5fE","task_revision_id":"1","upstream_id":"2012_E","short_description":"Infiltration","config":"ICPC-World-Finals","split":"examples","body":"{\"platform\":\"atcoder\",\"question_content\":\"## Problem Description\\n\\nGood morning, agent W-12. Your mission, should you choose to accept it, is as follows. We are infiltrating the ever so insidious Association of Chaos and Mischief (ACM) in order to take down their command structure. Unfortunately, they appear to be prepared for such an eventuality, and have given their command structure an annoyingly complex design which makes our infiltration quite difficult.\\n\\nThe ACM command structure is divided into several cells. For each pair of cells A and B, either A controls B or B controls A. But this “control” relation can be cyclic, so it could happen that A controls B and B controls C and C controls A.\\n\\nWe can send in agents to infiltrate any particular cell, which gives us control over that cell and the cells that it controls, but not any other cells. So in the example above, infiltrating A would give us control over A and B, but not C.\\n\\nFor a successful infiltration of the ACM, we must obtain control over all of its cells, otherwise the cells that are out of our control will discover us and start causing some of their trademark chaos and mischief. As you know, we’re on a tight spending leash from higher authority these days, so we need to execute this mission as efficiently as possible. Your mission is to figure out the minimum number of cells we need to infiltrate in order to succeed.\\n\\nThis mission briefing will self-destruct in five hours. Good luck!\\n\\n### Input\\n\\nThe first line of a test case contains the number \\\\( n \\\\) of cells the ACM has \\\\((1 \\\\leq n \\\\leq 75)\\\\). Each of the next \\\\( n \\\\) lines contains a binary string of length \\\\( n \\\\) where the \\\\( i \\\\)-th character of the \\\\( j \\\\)-th line is 1 if cell \\\\( j \\\\) controls cell \\\\( i \\\\), and 0 otherwise \\\\((1 \\\\leq i, j \\\\leq n)\\\\).\\n\\nThe \\\\( i \\\\)-th character of the \\\\( i \\\\)-th line is 0 and for \\\\( i \\\\neq j \\\\), either the \\\\( i \\\\)-th character of the \\\\( j \\\\)-th line is 1 or the \\\\( j \\\\)-th character of the \\\\( i \\\\)-th line is 1, but not both.\\n\\n### Output\\n\\nFor each test case, display its case number followed by the minimum number \\\\( m \\\\) of cells that must be infiltrated to obtain complete control of the ACM. Then display \\\\( m \\\\) numbers \\\\( c_1, \\\\ldots, c_m \\\\) in any order, indicating the list of cells to infiltrate (cells are numbered from 1 to \\\\( n \\\\)). If more than one set of \\\\( m \\\\) cells gives complete control, any one will be accepted.\\n\\n### Sample Input\\n\\n```\\n2\\n00\\n10\\n3\\n010\\n001\\n100\\n5\\n01000\\n00011\\n11001\\n10100\\n10010\\n```\\n\\n### Output for Sample Input\\n\\n```\\nCase 1: 1 2\\nCase 2: 2 1 2\\nCase 3: 2 2 3\\n```\",\"question_title\":\"Infiltration\"}","display_format":"text","language":"","answer_status":"published","assets":[],"source_url":"https://humanity-s-last-code-exam.github.io/website/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}