<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>9501 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<atom:link href="https://lycos7560.com/tag/9501/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>생각의 흐름을 타고 다니며 만드는 블로그</description>
	<lastBuildDate>Sat, 15 Apr 2023 02:30:54 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://lycos7560.com/wp-content/uploads/2022/11/cropped-cropped-cropped-log-1-150x150-1-80x80.png</url>
	<title>9501 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>백준 9501번 (꿍의 우주여행, C++) [BAEKJOON]</title>
		<link>https://lycos7560.com/cpp/baekjoon_online_judge/%eb%b0%b1%ec%a4%80-9501%eb%b2%88-%ea%bf%8d%ec%9d%98-%ec%9a%b0%ec%a3%bc%ec%97%ac%ed%96%89-c-baekjoon/34321/</link>
					<comments>https://lycos7560.com/cpp/baekjoon_online_judge/%eb%b0%b1%ec%a4%80-9501%eb%b2%88-%ea%bf%8d%ec%9d%98-%ec%9a%b0%ec%a3%bc%ec%97%ac%ed%96%89-c-baekjoon/34321/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Sat, 01 Apr 2023 02:30:26 +0000</pubDate>
				<category><![CDATA[BaekjoonOnlineJudge]]></category>
		<category><![CDATA[C++/CPP]]></category>
		<category><![CDATA[9501]]></category>
		<category><![CDATA[9501번]]></category>
		<category><![CDATA[Baekjoon]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[구현]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[꿍의 우주여행]]></category>
		<category><![CDATA[백준]]></category>
		<category><![CDATA[백준 9501]]></category>
		<category><![CDATA[백준 9501번]]></category>
		<category><![CDATA[사칙연산]]></category>
		<category><![CDATA[수학]]></category>
		<category><![CDATA[알고리즘]]></category>
		<category><![CDATA[코딩테스트]]></category>
		<category><![CDATA[코테]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=34321</guid>

					<description><![CDATA[<p>백준 온라인저지 9501번 '꿍의 우주여행' 문제에 대한 글입니다. (This is an article on the issue of Baekjoon Online Judge No. 9501 'Kung's Space Travel'.)</p>
<p>The post <a href="https://lycos7560.com/cpp/baekjoon_online_judge/%eb%b0%b1%ec%a4%80-9501%eb%b2%88-%ea%bf%8d%ec%9d%98-%ec%9a%b0%ec%a3%bc%ec%97%ac%ed%96%89-c-baekjoon/34321/">백준 9501번 (꿍의 우주여행, C++) [BAEKJOON]</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5698326622209671" crossorigin="anonymous"></script>
<!-- HorizontalAD -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5698326622209671" data-ad-slot="6908948342" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<div style="height:62px" aria-hidden="true" class="wp-block-spacer"></div>


				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-2ed39024      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차 테이블						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#꿍의-우주여행" class="uagb-toc-link__trigger">꿍의 우주여행</a><li class="uagb-toc__list"><a href="#통과된-코드" class="uagb-toc-link__trigger">통과된 코드</a></ol>					</div>
									</div>
				</div>
			


<div style="height:62px" aria-hidden="true" class="wp-block-spacer"></div>



<h1 class="wp-block-heading">꿍의 우주여행</h1>



<p class="has-medium-font-size wp-block-paragraph"><a href="https://www.acmicpc.net/problem/9501" target="_blank" rel="noreferrer noopener">https://www.acmicpc.net/problem/9501</a></p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-left" data-align="left">시간 제한</th><th class="has-text-align-left" data-align="left">메모리 제한</th><th class="has-text-align-left" data-align="left">제출</th><th class="has-text-align-left" data-align="left">정답</th><th class="has-text-align-left" data-align="left">맞힌 사람</th><th class="has-text-align-left" data-align="left">정답 비율</th></tr></thead><tbody><tr><td class="has-text-align-left" data-align="left">2 초</td><td class="has-text-align-left" data-align="left">128 MB</td><td class="has-text-align-left" data-align="left">1953</td><td class="has-text-align-left" data-align="left">1539</td><td class="has-text-align-left" data-align="left">1441</td><td class="has-text-align-left" data-align="left">80.548%</td></tr></tbody></table></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">문제</h2>



<p class="has-medium-font-size wp-block-paragraph">꿍은 우주여행을 하고 싶어져서 우주여행을 계획하기 시작했다. </p>



<p class="has-medium-font-size wp-block-paragraph">몇 가지를 고려해본 결과 우주여행에는 </p>



<p class="has-medium-font-size wp-block-paragraph">우주선의 연료와 목적지까지의 도착시간이 가장 큰 영향을 미치는것으로 파악됐다. </p>



<p class="has-medium-font-size wp-block-paragraph">꿍은 엄청난 부자여서 우주선이 여러대가 있는데 각각의 우주선마다 최고속도와 연료소비율이 조금씩 다르다. </p>



<p class="has-medium-font-size wp-block-paragraph">연료 소비율은 단위시간당 소비하는 연료의 양이다.</p>



<p class="has-medium-font-size wp-block-paragraph">모든 우주선이 최고속도에 즉시 도달한다고 할 때 꿍이 가고싶어하는 곳까지 </p>



<p class="has-medium-font-size wp-block-paragraph">여행할 수 있는 우주선은 총 몇대인지 여러분이 대신 구해줘라.</p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">입력</h2>



<p class="has-medium-font-size wp-block-paragraph">입력은 테스트케이스의 개수&nbsp;T (1 ≤ T ≤ 50)로 시작한다.</p>



<p class="has-medium-font-size wp-block-paragraph">각 테스트케이스는 공백으로 구분되는, </p>



<p class="has-medium-font-size wp-block-paragraph">우주선의 개수 N (1 ≤ N ≤ 100)과 목적지 까지의 거리 D (1 ≤ D ≤ 10<sup>6</sup>), 두 개의 정수로 시작한다. </p>



<p class="has-medium-font-size wp-block-paragraph">다음 N줄에는 각각 공백으로 구분되는, </p>



<p class="has-medium-font-size wp-block-paragraph">우주선의 최고속도 v<sub>i</sub> (1 ≤ v<sub>i</sub> ≤ 1000)와 우주선의 연료양 f<sub>i</sub> (1 ≤ f<sub>i</sub> ≤ 1000)와 </p>



<p class="has-medium-font-size wp-block-paragraph">우주선의 연료소비율 c<sub>i</sub> (1 ≤ c<sub>i</sub> ≤ 1000), 세개의 정수가 주어진다.</p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">출력</h2>



<p class="has-medium-font-size wp-block-paragraph">각 테스트케이스에 대해 목적지까지 갈 수 있는 우주선의 개수를 구하여라.</p>



<p class="has-medium-font-size wp-block-paragraph">이때, 정수의 나눗셈에 조심하라!</p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">예제 입력 1</h2>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">2
3 100
52 75 10
88 13 44
56 9 5
2 920368
950 950 1
943 976 1</pre>



<div style="height:31px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">예제 출력 1</h2>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">2
1</pre>



<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">출처</h2>



<p class="wp-block-paragraph"><a href="https://www.acmicpc.net/category/1" target="_blank" rel="noreferrer noopener">ICPC</a> > <a href="https://www.acmicpc.net/category/7" target="_blank" rel="noreferrer noopener">Regionals</a> > <a href="https://www.acmicpc.net/category/8" target="_blank" rel="noreferrer noopener">North America</a> > <a href="https://www.acmicpc.net/category/33" target="_blank" rel="noreferrer noopener">Pacific Northwest Regional</a> > <a href="https://www.acmicpc.net/category/detail/1173" target="_blank" rel="noreferrer noopener">2013 Pacific Northwest Region Programming Contest</a> A번</p>



<ul class="wp-block-list">
<li>잘못된 번역을 찾은 사람: <a href="https://www.acmicpc.net/user/sait2000" target="_blank" rel="noreferrer noopener">sait2000</a></li>



<li>문제를 번역한 사람: <a href="https://www.acmicpc.net/user/seok9311" target="_blank" rel="noreferrer noopener">seok9311</a></li>



<li>빠진 조건을 찾은 사람: <a href="https://www.acmicpc.net/user/wkd48632" target="_blank" rel="noreferrer noopener">wkd48632</a></li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">알고리즘 분류</h2>



<ul class="wp-block-list">
<li><a href="https://www.acmicpc.net/problem/tag/124" target="_blank" rel="noreferrer noopener">수학</a></li>



<li><a href="https://www.acmicpc.net/problem/tag/102" target="_blank" rel="noreferrer noopener">구현</a></li>



<li><a href="https://www.acmicpc.net/problem/tag/121" target="_blank" rel="noreferrer noopener">사칙연산</a></li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--80)"/>



<h1 class="wp-block-heading">통과된 코드</h1>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="cpp" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#include &lt;iostream>
using namespace std;
int _T, _N, _Res;
float _D, _V, _F, _C;
int main()
{
	ios_base::sync_with_stdio(false); // scanf와 동기화를 비활성화
	// cin.tie(null); 코드는 cin과 cout의 묶음을 풀어줍니다.
	cin.tie(NULL);
	cout.tie(NULL);
	cin >> _T; // 테스트 케이스의 개수
	while (_T--) {
		cin >> _N >> _D; // 우주선의 개수, 목표 거리
		_Res = 0;
		while (_N--) {
			cin >> _V >> _F >> _C; // 최고 속도, 연료량, 연료 소비율
			if (_D &lt;= _V * _F / _C) _Res++;
			/*
			연료소비율 * 시간 = 연료량 
			연료량 / 연료소비율 = 시간
			시간 * 속도 = 거리
			거리 = 연료량 / 연료소비율 * 속도
				 = 속도 * 연료량 / 연료소비율		
			*/
		}
		cout &lt;&lt; _Res &lt;&lt; "\n";
	}
	return 0;
}</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="https://lycos7560.com/wp-content/uploads/2023/04/image-13.png" alt="" class="wp-image-34323" width="1069" height="87" srcset="https://lycos7560.com/wp-content/uploads/2023/04/image-13.png 963w, https://lycos7560.com/wp-content/uploads/2023/04/image-13-300x25.png 300w, https://lycos7560.com/wp-content/uploads/2023/04/image-13-768x63.png 768w" sizes="(max-width: 1069px) 100vw, 1069px" /></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5698326622209671" crossorigin="anonymous"></script>
<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5698326622209671" data-ad-slot="4245812909"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p>The post <a href="https://lycos7560.com/cpp/baekjoon_online_judge/%eb%b0%b1%ec%a4%80-9501%eb%b2%88-%ea%bf%8d%ec%9d%98-%ec%9a%b0%ec%a3%bc%ec%97%ac%ed%96%89-c-baekjoon/34321/">백준 9501번 (꿍의 우주여행, C++) [BAEKJOON]</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/cpp/baekjoon_online_judge/%eb%b0%b1%ec%a4%80-9501%eb%b2%88-%ea%bf%8d%ec%9d%98-%ec%9a%b0%ec%a3%bc%ec%97%ac%ed%96%89-c-baekjoon/34321/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
