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.
3139
1 2<script type="text/x-mathjax-config">3 MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});4</script>5<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">6</script>7 8 9<H1>A Point in a Triangle</H1>10 11<p>12There is a triangle formed by three points $(x_1, y_1)$, $(x_2, y_2)$, $(x_3, y_3)$ on a plain.13</p>14<p>15Write a program which prints "<span>YES</span>" if a point $P$ $(x_p, y_p)$ is in the triangle and "<span>NO</span>" if not.16</p>17 18<!--19<p>20You can suppose that P is never on the points nor sides of the triangle.21</p>22-->23 24 25<H2>Input</H2>26 27<p>28Input consists of several datasets. Each dataset consists of:<br/>29<br/>30$x_1$ $y_1$ $x_2$ $y_2$ $x_3$ $y_3$ $x_p$ $y_p$<br/>31</p>32 33<p>34All the input are real numbers. Input ends with EOF. The number of datasets is less than or equal to 100.35</p>36 37<h2>Constraints</h2>38<p>39You can assume that:40</p>41 42<ul>43<li>$ -100 \leq x_1, y_1, x_2, y_2, x_3, y_3, x_p, y_p \leq 100$</li>44<li>1.0 $\leq$ Length of each side of a tringle</li>45<li>0.001 $\leq$ Distance between $P$ and each side of a triangle</li>46</ul>47 48<H2>Output</H2>49 50<p>51For each dataset, print "<span>YES</span>" or "<span>NO</span>" in a line.52</p>53 54<H2>Sample Input</H2>55 56<pre>570.0 0.0 2.0 0.0 2.0 2.0 1.5 0.5580.0 0.0 1.0 4.0 5.0 3.0 -1.0 3.059</pre>60 61<H2>Output for the Sample Input</H2>62 63<pre>64YES65NO66</pre>67 68 69 