Team Ai
Datasetpublic

prithivMLmods/Coder-Stat

Coder-Stat Dataset Overview The Coder-Stat dataset is a collection of programming-related data, including problem IDs, programming languages, original statuses, and source code snippets. This dataset is designed to assist in the analysis of coding patterns, error types, and performance metrics. Dataset Details Modalities Tabular: The dataset is structured in a tabular format. Text: Contains text data, including source code snippets.… See the full description on the dataset page: https://huggingface.co/datasets/prithivMLmods/Coder-Stat.

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
3likes139downloads
p00151.html81 linesDownload Raw Back to problem_descriptions
1 2<H1>Grid</H1>3 4<p>5There is a n &times; n grid D where each cell contains either 1 or 0.6</p>7 8<p>9Your task is to create a program that takes the gird data as input and computes the greatest number of consecutive 1s in either vertical, horizontal, or diagonal direction.10</p>11<p>12For example, the consecutive 1s with greatest number in the figure below is circled by the dashed-line.13</p>14 15 16<center>17<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_masume">18</center>19 20<p>21The size of the grid n is an integer where 2 &le; n &le; 255.22</p>23 24<H2>Input</H2>25 26<p>27The input is a sequence of datasets. The end of the input is indicated by a line containing one zero. Each dataset is formatted as follows:28</p>29 30<pre>31n32D<sub>11</sub> D<sub>12</sub> ... D<sub>1n</sub>33D<sub>21</sub> D<sub>22</sub> ... D<sub>2n</sub>34  .35  .36D<sub>n1</sub> D<sub>n2</sub> ... D<sub>nn</sub>37</pre>38 39<H2>Output</H2>40 41<p>42For each dataset, print the greatest number of consecutive 1s.43</p>44 45<H2>Sample Input</H2>46 47<pre>48549000115000101510100052101015300010548551100000156101101115701100111580111101059111111116001011010611010001062100000016326401650066367000680006900070071</pre>72 73<H2>Output for the Sample Input</H2>74 75<pre>76477878179080</pre>81