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
p00331.html87 linesDownload Raw Back to problem_descriptions
1 2 3 4<script type="text/x-mathjax-config">5  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});6</script>7<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">8</script>9 10 11<H1>日の出と日の入り </H1>12 13<p>14太陽が現れることを「日の出」、隠れることを「日の入り」と呼びますが、その厳密な時刻は太陽が地平線に対してどのような位置にある時でしょうか。15</p>16 17<p>18下の図のように、太陽を円、地平線を直線で表すことにします。このとき、太陽の「日の出」「日の入り」の時刻は、太陽を表す円の上端が地平線を表す直線と一致する瞬間とされています。日の出の時刻を過ぎ、円の上端が直線より上にある時間帯が昼間、円が直線の下へ完全に隠れている時間帯が夜間となります。19</p>20 21<center>22<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2016_sunset_1" width="640">23</center><br/>24 25<p>26ある時刻の地平線から太陽の中心までの高さと、太陽の半径を入力とし、その時刻が「昼間」か、「日の出または日の入り」か、「夜間」かを出力するプログラムを作成せよ。27</p>28 29 30<h2>Input</h2>31 32<p>33入力は以下の形式で与えられる。 34</p>35 36<pre>37<var>H</var> <var>R</var>38</pre>39 40<p>41入力は1行からなり、ある時刻の地平線から太陽の中心までの高さを表す整数 <var>H</var> (-1000 &le; <var>H</var> &le; 1000) と半径を表す整数 <var>R</var> (1 &le; <var>R</var> &le; 1000) が与えられる。ただし、<var>H</var> は太陽の中心が地平線上にあるときを 0 として、それより上にあるときは正、下にあるときは負とする。42</p>43 44 45<h2>Output</h2>46 47<p>48昼間のとき「1」、日の出または日の入りのとき「0」、夜間のとき「-1」を1行に出力する。 49</p>50 51<h2>Sample Input 1</h2>52 53<pre>54-3 355</pre>56 57<h2>Sample Output 1</h2>58<pre>59060</pre>61<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2016_sunset_2" width="240"></center>62<br/>63 64 65<h2>Sample Input 2</h2>66<pre>673 368</pre>69 70<h2>Sample Output 2</h2>71<pre>72173</pre>74<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2016_sunset_3"  width="240"></center>75<br/>76 77<h2>Sample Input 3</h2>78<pre>79-4 380</pre>81 82<h2>Sample Output 3</h2>83<pre>84-185</pre>86<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2016_sunset_4"  width="240"></center>87