<?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>Đề Thi Học Sinh Giỏi Môn Tin Archives - 0968 974 858 - Gia Sư Nhật Minh</title>
	<atom:link href="https://giasunhatminh.vn/category/de-thi-hoc-sinh-gioi-mon-tin/feed/" rel="self" type="application/rss+xml" />
	<link>https://giasunhatminh.vn/category/de-thi-hoc-sinh-gioi-mon-tin/</link>
	<description>Trung Tâm Gia Sư Nhật Minh Uy Tín Và Chất Lượng Số...</description>
	<lastBuildDate>Mon, 12 Aug 2024 10:02:49 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Nga Sơn Tỉnh Thanh Hoá Năm 2023-2024</title>
		<link>https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-nga-son-tinh-thanh-hoa-nam-2023-2024/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 16 Apr 2024 14:46:02 +0000</pubDate>
				<category><![CDATA[Đề Thi Học Sinh Giỏi Môn Tin]]></category>
		<guid isPermaLink="false">https://giasunhatminh.vn/?p=14238</guid>

					<description><![CDATA[<p>PHÒNG GD&#38;ĐT NGA SƠN                     ĐỀ CHÍNH THỨC KỲ THI HỌC SINH GIỎI CẤP HUYỆN VÀ CHỌN ĐỘI TUYỂN DỰ THI CẤP TỈNH NĂM HỌC 2023 – 2024 Thời gian làm bài: 150 phút, không kể thời gian phát đề (Đề thi gồm có phần lý thuyết và phần thực hành)   ĐỀ [&#8230;]</p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-nga-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Nga Sơn Tỉnh Thanh Hoá Năm 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table width="709">
<tbody>
<tr>
<td width="276"><span style="color: #008000;"><strong>PHÒNG GD&amp;ĐT NGA SƠN</strong></span></p>
<p><span style="color: #008000;">        </span></p>
<p><span style="color: #008000;">           <strong>ĐỀ CHÍNH THỨC</strong></span></td>
<td width="432"><span style="color: #008000;"><strong>KỲ THI </strong><strong>HỌC SINH GIỎI CẤP HUYỆN VÀ CHỌN ĐỘI TUYỂN DỰ THI CẤP TỈNH NĂM HỌC 2023 – 2024</strong></span></p>
<p><span style="color: #008000;"><em>Thời gian làm bài: 150 phút, không kể thời gian phát đề</em></span></p>
<p><span style="color: #008000;"><em>(Đề thi gồm có phần lý thuyết và phần thực hành)</em></span></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><strong> </strong></span></p>
<p><span style="color: #008000;"><strong>ĐỀ BÀI PHẦN THI THỰC HÀNH TRÊN MÁY</strong></span></p>
<p><span style="color: #008000;"><strong>Sử dụng ngôn ngữ lập trình C++ để lập trình giải các bài toán sau:</strong></span></p>
<p><span style="color: #008000;"><strong><em>Tổng quan bài thi:</em></strong></span></p>
<table width="616">
<tbody>
<tr>
<td width="101"><span style="color: #008000;"><strong>STT</strong></span></td>
<td width="125"><span style="color: #008000;"><strong>File chương trình</strong></span></td>
<td width="123"><span style="color: #008000;"><strong>File dữ liệu vào</strong></span></td>
<td width="132"><span style="color: #008000;"><strong>File kết quả</strong></span></td>
<td width="135"><span style="color: #008000;"><strong>Thời gian của 1 test</strong></span></td>
</tr>
<tr>
<td width="101"><span style="color: #008000;"><strong>Câu 1 (6đ)</strong></span></td>
<td width="125"><span style="color: #008000;"><strong>CAU1.CPP</strong></span></td>
<td width="123"><span style="color: #008000;"><strong>CAU1.INP</strong></span></td>
<td width="132"><span style="color: #008000;"><strong>CAU1.OUT</strong></span></td>
<td width="135"><span style="color: #008000;"><strong>1 giây</strong></span></td>
</tr>
<tr>
<td width="101"><span style="color: #008000;"><strong>Câu 2 (6đ)</strong></span></td>
<td width="125"><span style="color: #008000;"><strong>CAU2.CPP</strong></span></td>
<td width="123"><span style="color: #008000;"><strong>CAU2.INP</strong></span></td>
<td width="132"><span style="color: #008000;"><strong>CAU2.OUT</strong></span></td>
<td width="135"><span style="color: #008000;"><strong>1 giây</strong></span></td>
</tr>
<tr>
<td width="101"><span style="color: #008000;"><strong>Câu 3 (4đ)</strong></span></td>
<td width="125"><span style="color: #008000;"><strong>CAU3.CPP</strong></span></td>
<td width="123"><span style="color: #008000;"><strong>CAU3.INP</strong></span></td>
<td width="132"><span style="color: #008000;"><strong>CAU3.OUT</strong></span></td>
<td width="135"><span style="color: #008000;"><strong>1 giây</strong></span></td>
</tr>
<tr>
<td width="101"><span style="color: #008000;"><strong>Câu 4 (2đ)</strong></span></td>
<td width="125"><span style="color: #008000;"><strong>CAU4.CPP</strong></span></td>
<td width="123"><span style="color: #008000;"><strong>CAU4.INP</strong></span></td>
<td width="132"><span style="color: #008000;"><strong>CAU4.OUT</strong></span></td>
<td width="135"><span style="color: #008000;"><strong>1 giây</strong></span></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><em>Dữ liệu vào là đúng đắn, không cần phải kiểm tra. Trong các file dữ liệu vào/ra, nếu dữ liệu trên cùng một dòng thì được cách nhau bởi ít nhất 1 dấu cách. </em></span></p>
<p><span style="color: #008000;">Câu 1. (6 điểm)</span></p>
<p><span style="color: #008000;">Cho 4 số nguyên dương <em>a, b, c, d</em> mỗi số không vượt quá 10<sup>9</sup>.</span></p>
<p><span style="color: #008000;">Hãy tìm 2 số nguyên <em>x, y</em> để phân số  tối giản và bằng tổng của 2 phân số  và.</span></p>
<p><span style="color: #008000;"><strong>Dữ liệu:</strong> Vào từ file <strong>CAU1.INP</strong> gồm:</span></p>
<ul>
<li><span style="color: #008000;">Dòng đầu chứa 2 số <em>a,b</em>;</span></li>
<li><span style="color: #008000;">Dòng thứ hai chứa 2 số c<em>,d.</em></span></li>
</ul>
<p><span style="color: #008000;"><strong>Kết quả:</strong> Ghi ra file <strong>CAU1.OUT</strong> hai số x và y trên cùng một dòng, cách nhau một dấu cách thỏa mãn yêu cầu bài toán.</span></p>
<p><span style="color: #008000;"><strong>Ví dụ:</strong></span></p>
<p>&nbsp;</p>
<table>
<tbody>
<tr>
<td width="113"><span style="color: #008000;"><strong>CAU1</strong><strong>.INP</strong></span></td>
<td width="142"><span style="color: #008000;"><strong>CAU1</strong><strong>.OUT</strong></span></td>
<td width="255"><span style="color: #008000;"><strong>Giải thích</strong></span></td>
</tr>
<tr>
<td width="113"><span style="color: #008000;">1 2</span></p>
<p><span style="color: #008000;">3 4</span></td>
<td width="142"><span style="color: #008000;">5 4</span></td>
<td width="255"></td>
</tr>
<tr>
<td width="113"><span style="color: #008000;">8 3</span></p>
<p><span style="color: #008000;">2 6</span></td>
<td width="142"><span style="color: #008000;">3 1</span></td>
<td width="255"></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><strong>Câu</strong><strong> 2. </strong><strong>(6 điểm)</strong></span></p>
<p><span style="color: #008000;">Tại vòng loại trực tiếp của một giải bóng đá, một cặp đấu giữa hai đội <em>A </em>và <em>B </em>sẽ bao gồm hai trận: lượt đi và lượt về. Sau hai hiệp thi đấu chính thức ở trận lượt về, việc chọn đội để đi tiếp sẽ được diễn ra như sau:</span></p>
<ul>
<li><span style="color: #008000;">Đội nào có nhiều bàn thắng hơn (tổng số bàn thắng ở cả hai lượt trận) thì đội đó dành quyền đi tiếp.</span></li>
<li><span style="color: #008000;">Trong trường hợp hai đội có số bàn thắng như nhau, đội nào có nhiều bàn thắng trên sân khách hơn sẽ dành quyền đi tiếp.</span></li>
<li><span style="color: #008000;">Nếu hai điều trên chưa đủ để chọn ra đội dành quyền đi tiếp, hai đội sẽ bước vào hiệp phụ.</span></li>
</ul>
<p><span style="color: #008000;"><strong>Dữ liệu:</strong> Vào từ file <strong>CAU2.INP </strong>gồm:</span></p>
<ul>
<li><span style="color: #008000;">Dòng đầu tiên chứa hai số nguyên không âm <em>A</em><sub>1 </sub>và <em>B</em><sub>1</sub>, là số bàn thắng mà hai đội <em>A </em>và <em>B </em>dành được trong trận lượt đi (ở trận lượt đi, <em>A </em>là đội chủ nhà, <em>B </em>là đội khách) (<em>0≤ A<sub>1</sub>,B<sub>1 </sub>≤9</em>).</span></li>
<li><span style="color: #008000;">Dòng thứ hai chứa hai số nguyên không âm <em>B</em><sub>2 </sub>và <em>A</em><sub>2</sub>, là số bàn thắng mà hai đội <em>B </em>và <em>A </em>dành được trong trận lượt về (ở trận lượt về, <em>B </em>là đội chủ nhà, <em>A </em>là đội khách) (0<em>≤ B<sub>2</sub>,A<sub>2 </sub>≤</em>9).</span></li>
</ul>
<p><span style="color: #008000;"><strong>Kết quả:</strong> Ghi ra file <strong>CAU</strong><strong>2</strong><strong>.OUT</strong> kết quả:</span></p>
<ul>
<li><span style="color: #008000;">Nếu một trong hai đội dành quyền đi tiếp sau hai hiệp thi đấu chính thức ở trận lượt về, in ra &#8220;A wins&#8221; nếu đội <em>A </em>dành quyền đi tiếp hoặc &#8220;B wins&#8221; nếu đội <em>B </em>dành quyền đi tiếp.</span></li>
<li><span style="color: #008000;">Ngược lại, in ra &#8220;Extra time&#8221;.</span></li>
</ul>
<p><span style="color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="442">
<tbody>
<tr>
<td width="255"><span style="color: #008000;"><strong>CAU2.INP</strong></span></td>
<td width="187"><span style="color: #008000;"><strong>CAU2.INP</strong></span></td>
</tr>
<tr>
<td width="255"><span style="color: #008000;">1 2</span></p>
<p><span style="color: #008000;">2 1</span></td>
<td width="187"><span style="color: #008000;">B wins</span></td>
</tr>
<tr>
<td width="255"><span style="color: #008000;">1 2</span></p>
<p><span style="color: #008000;">1 2</span></td>
<td width="187"><span style="color: #008000;">Extra time</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><strong>Câu 3. </strong><strong>(4 điểm)</strong></span></p>
<p><span style="color: #008000;">Cho hai xâu kí tự  và  chỉ gồm các kí tự chữ cái latinh thường (tức là thuộc tập các kí tự từ  đến ).</span></p>
<p><span style="color: #008000;">Hãy đưa ra tập các kí tự chung thuộc cả xâu  và xâu  theo thứ tự bảng chữ cái từ  đến . Dữ liệu đảm bảo luôn có ít nhất một kí tự chung thuộc cả hai xâu  và .</span></p>
<p><span style="color: #008000;">Chú ý nếu một kí tự là kí tự chung của  và  thì chỉ được đưa ra kí tự đó một lần.</span></p>
<p><span style="color: #008000;"><strong>Dữ liệu:</strong> Vào từ file <strong>CAU3.INP</strong> gồm:</span></p>
<ul>
<li><span style="color: #008000;">Dòng thứ nhất ghi xâu .</span></li>
<li><span style="color: #008000;">Dòng thứ hai ghi xâu .</span></li>
</ul>
<p><span style="color: #008000;"><strong>Kết quả:</strong>  Ghi ra file <strong>CAU3.OUT</strong> danh sách các kí tự chung thuộc cả xâu  và xâu  được sắp xếp theo thứ tự bảng chữ cái từ  đến . Mỗi kí tự được ghi trên một dòng.</span></p>
<p><span style="color: #008000;"><strong>Ví dụ:</strong></span></p>
<table>
<tbody>
<tr>
<td width="113"><span style="color: #008000;"><strong>CAU3</strong><strong>.INP</strong></span></td>
<td width="142"><span style="color: #008000;"><strong>CAU</strong><strong>3.OUT</strong></span></td>
<td width="350"><span style="color: #008000;"><strong>Giải thích</strong></span></td>
</tr>
<tr>
<td width="113"></td>
<td width="142"></td>
<td width="350"><span style="color: #008000;">Xâu  và  có hai kí tự chung là {}.</span></td>
</tr>
<tr>
<td width="113"></td>
<td width="142"></td>
<td width="350"><span style="color: #008000;">Xâu  và  có ba kí tự chung là {}.</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><strong>Giới hạn:</strong></span></p>
<ul>
<li><span style="color: #008000;"><em>Có 50% số test ứng với độ dài của xâu </em><em>và </em><em> không lớn hơn 255, xâu </em><em> và xâu </em><em> chỉ gồm các kí tự thuộc tập hai kí tự </em><em> và </em><em>;</em></span></li>
<li><span style="color: #008000;"><em>Có 50% số test ứng với độ dài của xâu </em><em>và </em><em> không lớn hơn 255.</em></span></li>
</ul>
<p><span style="color: #008000;"><strong>Câu 4. </strong><strong>(2 điểm) </strong></span></p>
<p><span style="color: #008000;">Cho dãy số nguyên dương gồm <em>N </em>phần tử <em>a<sub>1</sub>,a<sub>2</sub>,&#8230;,a<sub>N</sub></em>. Hãy đếm số lượng các cặp <em>(a<sub>i </sub>,a<sub>j</sub>)</em> thỏa mãn:</span></p>
<ul>
<li><span style="color: #008000;">1 ≤ <em>i </em>&lt; <em>j </em>≤ <em>N</em>;</span></li>
<li><span style="color: #008000;"><em>a<sub>i </sub></em>+ <em>a<sub>j </sub><sup>2</sup></em>= <em>K </em>với <em>K </em>cho trước.</span></li>
</ul>
<p><span style="color: #008000;"><strong>Dữ liệu: </strong>Vào từ file <strong>CAU4.INP</strong> gồm:</span></p>
<ul>
<li><span style="color: #008000;">Dòng đầu gồm 2 số nguyên dương <em>N </em>và <em>K </em>(<em>N ≤ 10<sup>5</sup>, K ≤ 10<sup>9</sup></em>);</span></li>
<li><span style="color: #008000;">Dòng thứ hai gồm <em>N </em>số nguyên dương <em>a<sub>1</sub>,a<sub>2</sub></em><em>,&#8230;,a<sub>N  </sub>(a<sub>i </sub>≤ 500, 1≤ i ≤N).</em></span></li>
</ul>
<p><span style="color: #008000;"><strong>Kết quả:</strong>  Ghi ra file <strong>CAU</strong><strong>4</strong><strong>.OUT</strong> kết quả số cặp <em>(a<sub>i </sub>,a<sub>j</sub>)</em> thỏa mãn điều kiện bài toán.</span></p>
<p><span style="color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="451">
<tbody>
<tr>
<td width="251"><span style="color: #008000;"><strong>CAU4.INP</strong></span></td>
<td width="199"><span style="color: #008000;"><strong>CAU4</strong><strong>.OUT</strong></span></td>
</tr>
<tr>
<td width="251"><span style="color: #008000;">3 5</span></p>
<p><span style="color: #008000;">1 2 1</span></td>
<td width="199"><span style="color: #008000;">1</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #008000;"><strong>Giới hạn:</strong></span></p>
<ul>
<li><span style="color: #008000;"><em>Có 40% số test ứng với 40% số điểm có N</em><em>≤10<sup>4</sup>;</em></span></li>
<li><span style="color: #008000;"><em>Có 60% số test ứng với 60% số điểm có </em><em>10<sup>4</sup></em><em> &lt;N</em><em>≤10<sup>5</sup>.</em></span></li>
</ul>
<p><span style="color: #008000;"><strong><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Hết&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em></strong></span></p>
<p><span style="color: #008000;">Họ, tên thí sinh:&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.Số báo danh&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</span></p>
<p><span style="color: #008000;">Chữ ký của cán bộ coi thi 1 &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..; Chữ ký của cán bộ coi thi 2 &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</span></p>
<p><span style="color: #008000;"><em>Thí sinh không được sử dụng tài liệu. Cán bộ coi thi không giải thích gì thêm.</em></span></p>
<p>&nbsp;</p>
<p><strong>BẠN QUAN TÂM*</strong></p>
<ol>
<li><a href="https://giasunhatquang.vn/gia-su-ninh-binh/"><strong>Trung Tâm Gia Sư Nhật Quang Tại Ninh Bình</strong></a></li>
<li><a href="https://giasunhatgiaminh.com/gia-su-cac-tinh/gia-su-ninh-binh.html"><strong>Trung Tâm Gia Sư Nhật Gia Minh Tại Ninh Bình</strong></a></li>
<li><a href="https://giasunhatminh.vn/gia-su-ninh-binh/"><strong>Trung Tâm Gia Sư Nhật Minh Tại Ninh Bình</strong></a></li>
<li><a href="https://giasuquockhanh.vn/top-3-trung-tam-gia-su-tot-nhat-ninh-binh/"><strong>Top 4 Trung Tâm Gia Sư Tốt Nhất  Ninh Bình</strong></a></li>
<li><a href="https://giasunhatquang.vn/gia-su-thai-binh/"><strong>Trung Tâm Gia Sư Nhật Quang Tại Thái Bình</strong></a></li>
<li><a href="https://giasunhatminh.vn/gia-su-thai-binh/"><strong>Trung Tâm Gia Sư Nhật Minh Tại Thái Bình</strong></a></li>
<li><a href="https://giasunhatgiaminh.com/gia-su-cac-tinh/gia-su-thai-binh.html"><strong>Trung Tâm Gia Sư Nhật Gia Minh Tại Thái Bình</strong></a></li>
<li><a href="https://giasuquockhanh.vn/top-3-trung-tam-gia-su-tot-nhat-thai-binh/"><strong>Top 4 Trung Tâm Gia Sư Tốt Nhất Thái Bình</strong></a></li>
</ol>
<p>&nbsp;</p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-nga-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Nga Sơn Tỉnh Thanh Hoá Năm 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Triệu Sơn Tỉnh Thanh Hoá Năm 2023-2024</title>
		<link>https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-trieu-son-tinh-thanh-hoa-nam-2023-2024/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 16 Apr 2024 14:42:34 +0000</pubDate>
				<category><![CDATA[Đề Thi Học Sinh Giỏi Môn Tin]]></category>
		<guid isPermaLink="false">https://giasunhatminh.vn/?p=14236</guid>

					<description><![CDATA[<p>PHÒNG GIÁO DỤC VÀ ĐÀO TẠO TRIỆU SƠN &#160; ĐỀ CHÍNH THỨC &#160; Số báo danh &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. KIỂM ĐỊNH CHẤT LƯỢNG HỌC SINH GIỎI CẤP HUYỆN                     Năm học 2023 &#8211; 2024   Môn: Tin học 8 Thời gian: 150 phút (không kể thời gian giao đề) Ngày 23 tháng 3 năm 2024 (Đề có 07 [&#8230;]</p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-trieu-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Triệu Sơn Tỉnh Thanh Hoá Năm 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table width="680">
<tbody>
<tr>
<td width="265"><span style="font-size: 14px; color: #008000;"><strong>PHÒNG GIÁO DỤC VÀ ĐÀO TẠO</strong></span></p>
<p><span style="font-size: 14px; color: #008000;"><strong>TRIỆU SƠN</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 14px; color: #008000;"><strong>ĐỀ CHÍNH THỨC</strong></span></p>
<p>&nbsp;</p>
<table>
<tbody>
<tr>
<td width="170"><span style="font-size: 16px; color: #008000;"><strong>Số báo danh</strong></span></p>
<p><span style="font-size: 16px; color: #008000;">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</span></td>
</tr>
</tbody>
</table>
</td>
<td width="416"><span style="font-size: 16px; color: #008000;"><strong>KIỂM ĐỊNH CHẤT LƯỢNG HỌC SINH GIỎI CẤP HUYỆN                     </strong><strong>Năm học 2023 &#8211; 2024</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Môn: Tin học 8</strong></span></p>
<p><span style="font-size: 16px; color: #008000;">Thời gian: <strong>150</strong> phút (<em>không kể thời gian giao đề</em>)</span></p>
<p><span style="font-size: 16px; color: #008000;">Ngày 23 tháng 3 năm 2024</span></p>
<p><span style="font-size: 16px; color: #008000;"><em>(Đề có 07 trang, gồm 02 phần)</em></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;"><strong><u> </u></strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>PHẦN I: </strong><strong>LÝ THUYẾT</strong> (4,0 điểm)</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Hãy chọn </strong><strong>một phương án trả lời đúng.</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 1.</strong> <strong>Dựa trên những tiến bộ về công nghệ, máy tính điện tử có thể chia thành mấy thế hệ?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">1 thế hệ B. 3 thế hệ                            </span></li>
<li><span style="font-size: 16px; color: #008000;">5 thế hệ D. 7 thế hệ</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 2.</strong> <strong>Chọn phương án nêu ba đặc điểm của thông tin số:</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Dễ dàng được nhân bản, khó lan truyền, khó xoá bỏ hoàn toàn.</span></li>
<li><span style="font-size: 16px; color: #008000;">Dễ dàng được nhân bản, dễ lan truyền, khó xoá bỏ hoàn toàn.</span></li>
<li><span style="font-size: 16px; color: #008000;">Khó nhân bản, dễ lan truyền, dễ xoá bỏ hoàn toàn.</span></li>
<li><span style="font-size: 16px; color: #008000;">Khó nhân bản, khó lan truyền, dễ xoá bỏ hoàn toàn.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 3. Trong môi trường kĩ thuật số, thông tin được thu thập và lưu trữ như thế nào?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Tuy thu thập chậm nhưng lưu trữ với dung lượng lớn.</span></li>
<li><span style="font-size: 16px; color: #008000;">Thu thập nhanh nhưng chỉ lưu trữ với dung lượng nhỏ.</span></li>
<li><span style="font-size: 16px; color: #008000;">Thu thập nhanh và lưu trữ với dung lượng lớn.</span></li>
<li><span style="font-size: 16px; color: #008000;">Thu thập chậm và được cân nhắc kĩ trước khi lưu trữ.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 4.</strong> <strong>Để tìm hiểu về cách sử dụng một chiếc máy ảnh mới, nguồn thông tin nào sau đây cần được tham khảo nhất?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Hướng dẫn của một người đã từng chụp ảnh.</span></li>
<li><span style="font-size: 16px; color: #008000;">Hướng dẫn sử dụng của nhà sản xuất.</span></li>
<li><span style="font-size: 16px; color: #008000;">Hướng dẫn của một người giỏi Tin học.</span></li>
<li><span style="font-size: 16px; color: #008000;">Câu trả lời trên một số diễn đàn về chụp ảnh.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 5.</strong> <strong>Chọn phương án SAI?</strong> </span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Hầu hết thông tin trên Internet là có bản quyền.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chỉ sử dụng những sản phẩm số khi có sự cho phép của tác giả hoặc có bản quyền sử dụng.</span></li>
<li><span style="font-size: 16px; color: #008000;">Thông tin trên mạng là thông tin được chia sẻ cho tất cả mọi người nên em có thể sử dụng tuỳ ý.</span></li>
<li><span style="font-size: 16px; color: #008000;">Đăng và chia sẻ thông tin giả, thông tin cá nhân của người khác, thông tin đe dọa bắt nạt,&#8230; gây hậu quả cho người khác và chính mình là các ví dụ về việc sử dụng thông tin vào các mục đích sai trái.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 6.</strong> <strong>Hãy tưởng tượng em nhìn thấy một bài viết có tiêu đề “Các nhà khoa học đã chứng minh được rằng trò chơi điện tử giúp cải thiện trí nhớ”. Em chia sẻ bài viết lên mạng xã hội và sau đó nhận ra nó là thông tin giả. Em nên làm gì sau khi nhận ra mình đã chia sẻ thông tin sai lệch?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Giữ bài đã đăng chỉ để xem có bao nhiêu người yêu thích nó.</span></li>
<li><span style="font-size: 16px; color: #008000;">Không làm gì vì mọi người sẽ quên bài viết trong một hoặc hai ngày.</span></li>
<li><span style="font-size: 16px; color: #008000;">Tiếp tục chia sẻ các bài tương tự để làm cho thông tin giống như sự thật.</span></li>
<li><span style="font-size: 16px; color: #008000;">Xoá bài mà em đã chia sẻ và viết lời giải thích cho việc chia sẻ đó.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 7.</strong> <strong>Ba cấu trúc điều khiển cơ bản để mô tả thuật toán là gì?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Tuần tự, rẽ nhánh và lặp. B. Tuần tự, rẽ nhánh và gán.</span></li>
<li><span style="font-size: 16px; color: #008000;">Rẽ nhánh, lặp và gán. D. Tuần tự, lặp và gán.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 8.</strong> <strong>Chọn câu trả lời đúng nhất trả lời câu hỏi: Biểu thức là sự kết hợp của?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Biến, hằng và các phép toán.</span></li>
<li><span style="font-size: 16px; color: #008000;">Biến, các phép toán.</span></li>
<li><span style="font-size: 16px; color: #008000;">Biến, hằng, dấu ngoặc, các phép toán và các hàm.</span></li>
<li><span style="font-size: 16px; color: #008000;">Dấu ngoặc, phép toán và các hàm.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 9.</strong> <strong>Chọn phát biểu đúng nhất về hoạt động gỡ lỗi:</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Gỡ lỗi là phát hiện và loại bỏ lỗi. Trong lập trình, không nhất thiết phải gỡ lỗi.</span></li>
<li><span style="font-size: 16px; color: #008000;">Gỡ lỗi là chạy thử chương trình để phát hiện lỗi. Trong lập trình, không nhất thiết phải gỡ lỗi.</span></li>
<li><span style="font-size: 16px; color: #008000;">Gỡ lỗi là chạy thử chương trình để phát hiện lỗi. Gỡ lỗi là một phần quan trọng của lập trình.</span></li>
<li><span style="font-size: 16px; color: #008000;">Gỡ lỗi là phát hiện và loại bỏ lỗi. Gỡ lỗi là một phần quan trọng của lập trình.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 10.</strong> <strong>Khi chạy thử chương trình, em có thể phát hiện lỗi cú pháp khi?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Chương trình không hoạt động.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chương trình hoạt động theo sự điều khiển của các lệnh.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chương trình vẫn hoạt động nhưng đưa ra kết quả sai.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chương trình hoạt động nhưng đưa ra kết quả lúc đúng, lúc sai.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 11.</strong> <strong>Chọn phát biểu sai:</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Lỗi cú pháp là lỗi viết câu lệnh sai quy tắc, làm cho chương trình không hoạt động.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chương trình hoạt động khi chạy thử. Em khẳng định chương trình của mình là đúng.</span></li>
<li><span style="font-size: 16px; color: #008000;">Lỗi logic là lỗi câu lệnh, tuy được viết đúng quy tắc nhưng thực hiện sai so với kịch bản.</span></li>
<li><span style="font-size: 16px; color: #008000;">Chương trình hoạt động khi chạy thử. Em khẳng định chương trình của mình không có lỗi cú pháp.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 12.</strong> <strong>Thứ tự các bước giải bài toán trên máy tính?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Xác định bài toán àViết chương trình à Mô tả thuật toán.</span></li>
<li><span style="font-size: 16px; color: #008000;">Xác định bài toán àMô tả thuật toán à Viết chương trình.</span></li>
<li><span style="font-size: 16px; color: #008000;">Mô tả thuật toán àXác định bài toán àViết chương trình.</span></li>
<li><span style="font-size: 16px; color: #008000;">Viết chương trình àXác định bài toán  àMô tả thuật toán.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 13.</strong> <strong>Các kiểu dữ liệu của hằng là?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Kiểu số.</span></li>
<li><span style="font-size: 16px; color: #008000;">Kiểu xâu kí tự.</span></li>
<li><span style="font-size: 16px; color: #008000;">Kiểu logic.</span></li>
<li><span style="font-size: 16px; color: #008000;">Cả ba đáp án trên đều đúng.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 14. Cho sơ đồ thuật toán sau:</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Hãy cho biết thuật toán giải quyết nhiệm vụ gì?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">Tính tổng các số từ 1 đến n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Tính tổng 1 + n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Tính trung bình cộng các số từ 1 đến n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Tính tổng các số chẵn từ 1 đến n.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 15.</strong> <strong>Cho sơ đồ thuật toán như hình sau: </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Hãy cho biết thuật toán giải quyết nhiệm vụ gì?</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">A. Kiểm tra nếu n &lt; 0 thì in ra n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Kiểm tra nếu n &gt; 0 thì in ra n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Kiểm tra nếu n &lt; 0 thì in ra -n.</span></li>
<li><span style="font-size: 16px; color: #008000;">Tính giá trị tuyệt đối của n.</span></li>
</ol>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Câu 16.</strong> <strong>Các linh kiện điện tử trong các hình dưới đây là thành phần điện tử chính của máy tính điện tử ở các thế hệ. </strong></span></p>
<p><span style="font-size: 16px; color: #008000;">(1) Bóng bán dẫn                                                 (2) Đèn điện tử chân không</span></p>
<p><span style="font-size: 16px; color: #008000;">(3) Mạch tích hợp cỡ rất lớn (VLSI)                    (4) Mạch tích hợp (IC)</span></p>
<p><span style="font-size: 16px; color: #008000;">   </span></p>
<p><span style="font-size: 16px; color: #008000;">(5) Mạch tích hợp cỡ siêu lớn (ULSI)</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Hãy sắp xếp các linh kiện điện tử trên theo thứ tự xuất hiện trong các thế hệ máy tính từ thế hệ nhỏ đến thế hệ lớn.</strong></span></p>
<ol>
<li><span style="font-size: 16px; color: #008000;">(1)→(2)→(3)→(4)→(5) B. (4)→(3)→(2)→(1)→(5)</span></li>
<li><span style="font-size: 16px; color: #008000;">(2)→(1)→(4)→(3)→(5) D. (3)→(4)→(2)→(5)→(1)</span></li>
</ol>
<p>&nbsp;</p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>PHẦN II: </strong><strong>THỰC HÀNH </strong>(16,0 điểm)</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong><em>Tổng quan bài thi:</em></strong></span></p>
<table width="644">
<tbody>
<tr>
<td width="69"><span style="font-size: 16px; color: #008000;"><strong>Bài</strong></span></td>
<td width="203"><span style="font-size: 16px; color: #008000;"><strong>Tên bài</strong></span></td>
<td width="127"><span style="font-size: 16px; color: #008000;"><strong>File chương trình</strong></span></td>
<td width="132"><span style="font-size: 16px; color: #008000;"><strong>File dữ liệu vào</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>File kết quả</strong></span></td>
</tr>
<tr>
<td width="69"><span style="font-size: 16px; color: #008000;"><strong>Bài 1</strong></span></td>
<td width="203"><span style="font-size: 16px; color: #008000;"><strong>TÍNH TIỀN TAXI</strong></span></td>
<td width="127"><span style="font-size: 16px; color: #008000;"><strong>BAI1.*</strong></span></td>
<td width="132"><span style="font-size: 16px; color: #008000;"><strong>BAI1.INP</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>BAI1.OUT</strong></span></td>
</tr>
<tr>
<td width="69"><span style="font-size: 16px; color: #008000;"><strong>Bài 2</strong></span></td>
<td width="203"><span style="font-size: 16px; color: #008000;"><strong>ĐẾM SỐ NGUYÊN TỐ</strong></span></td>
<td width="127"><span style="font-size: 16px; color: #008000;"><strong>BAI2.*</strong></span></td>
<td width="132"><span style="font-size: 16px; color: #008000;"><strong>BAI2.INP</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>BAI2.OUT</strong></span></td>
</tr>
<tr>
<td width="69"><span style="font-size: 16px; color: #008000;"><strong>Bài 3</strong></span></td>
<td width="203"><span style="font-size: 16px; color: #008000;"><strong>ĐẾM SỐ HOÀN HẢO </strong></span></td>
<td width="127"><span style="font-size: 16px; color: #008000;"><strong>BAI3.*</strong></span></td>
<td width="132"><span style="font-size: 16px; color: #008000;"><strong>BAI3.INP</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>BAI3.OUT</strong></span></td>
</tr>
<tr>
<td width="69"><span style="font-size: 16px; color: #008000;"><strong>Bài 4</strong></span></td>
<td width="203"><span style="font-size: 16px; color: #008000;"><strong>BIẾN ĐỔI DÃY</strong></span></td>
<td width="127"><span style="font-size: 16px; color: #008000;"><strong>BAI4.*</strong></span></td>
<td width="132"><span style="font-size: 16px; color: #008000;"><strong>BAI4.INP</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>BAI4.OUT</strong></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;"><em>Dữ liệu vào là đúng đắn, không cần phải kiểm tra. Trong các file dữ liệu vào/ra, nếu dữ liệu trên cùng một dòng thì được cách nhau bởi ít nhất 1 dấu cách. Dấu (*) trong tên file chương trình biểu thị đuôi file tùy thuộc vào ngôn ngữ lập trình sử dụng.</em></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Bài 1. </strong>(6,0 điểm) <strong>TÍNH TIỀN TAXI</strong></span></p>
<p><span style="font-size: 16px; color: #008000;">Hôm nay, gia đình của Việt thuê một chiếc taxi để đến tham gia Lễ hội </span><br />
<span style="font-size: 16px; color: #008000;">đền Nưa &#8211; Am Tiên. Trên đường đi, bố của Việt nhìn thấy bảng giá cước taxi dán trên xe như sau:</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>BẢNG GIÁ CƯỚC</strong></span></p>
<table width="623">
<tbody>
<tr>
<td width="156"><span style="font-size: 16px; color: #008000;"><strong>Giá mở cửa</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>(Km đầu tiên)</em></span></td>
<td width="156"><span style="font-size: 16px; color: #008000;"><strong>Từ km thứ 2</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>đến km thứ 30</strong></span></td>
<td width="156"><span style="font-size: 16px; color: #008000;"><strong>Từ km 31</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>đến km 60</strong></span></td>
<td width="156"><span style="font-size: 16px; color: #008000;"><strong>Từ km 61 trở đi</strong></span></td>
</tr>
<tr>
<td width="156"><span style="font-size: 16px; color: #008000;">10.000đ/km</span></td>
<td width="156"><span style="font-size: 16px; color: #008000;">13.900đ/km</span></td>
<td width="156"><span style="font-size: 16px; color: #008000;">11.600đ/km</span></td>
<td width="156"><span style="font-size: 16px; color: #008000;">10.300đ/km</span></td>
</tr>
<tr>
<td colspan="4" width="623"><span style="font-size: 16px; color: #008000;"><strong><em>Phí thời gian chờ: 5 phút đầu miễn phí, từ phút thứ 6 là 3000đ/4 phút.</em></strong></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;">Bố liền đố Việt bài toán: Cho biết số kilômét từ nhà đến địa điểm tham gia lễ hội, hãy tính xem số tiền phải trả có khớp với số tiền trên đồng hồ của bác tài xế taxi khi kết thúc chuyến đi hay không. Tuy nhiên, do Việt không quen với việc tính toán khi ở trên xe nên bạn ấy đã gọi điện nhờ bạn giúp đỡ. Bạn hãy lập trình tính tiền taxi giúp Việt nhé.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Dữ liệu:</strong> Vào từ tệp văn bản <strong>BAI1.INP</strong> gồm một dòng chứa hai số nguyên dương x, y lần lượt là số kilômét sẽ đi và thời gian chờ (x ≤ 1000, y ≤ 120).</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Kết quả:</strong> Ghi ra tệp văn bản <strong>BAI1.OUT</strong> số tiền mà gia đình Việt phải trả cho bác tài xế.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="624">
<tbody>
<tr>
<td width="104"><span style="font-size: 16px; color: #008000;"><strong>BAI1.INP</strong></span></td>
<td width="108"><span style="font-size: 16px; color: #008000;"><strong>BAI1.OUT</strong></span></td>
<td width="411"><span style="font-size: 16px; color: #008000;"><strong>Giải thích</strong></span></td>
</tr>
<tr>
<td width="104"><span style="font-size: 16px; color: #008000;">25 0</span></td>
<td width="108"><span style="font-size: 16px; color: #008000;">343600</span></td>
<td width="411"><span style="font-size: 16px; color: #008000;">Gia đình Việt đi quãng đường là 25km và 0 phút chờ.</span></p>
<p><span style="font-size: 16px; color: #008000;">Cách tính tiền như sau:</span></p>
<p><span style="font-size: 16px; color: #008000;">      = 10000 + (25-1)*13900 =343600</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Bài 2. </strong>(4,0 điểm) <strong>ĐẾM SỐ NGUYÊN TỐ </strong></span></p>
<p><span style="font-size: 16px; color: #008000;">Số nguyên tố là số tự nhiên lớn hơn 1, chỉ có 2 ước là 1 và chính nó. Cho dãy <em>n </em>số nguyên dương <em>a<sub>1</sub>, a<sub>2</sub>,…, a<sub>n</sub></em> , em hãy đếm xem trong dãy có bao nhiêu số nguyên tố đôi một khác nhau.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Dữ liệu:</strong> Nhập vào từ tệp văn bản <strong>BAI</strong><strong>2.INP</strong> gồm 2 dòng:</span></p>
<p><span style="font-size: 16px; color: #008000;">&#8211; Dòng thứ nhất chứa số tự nhiên <em>n  (1</em> <em>≤</em> <em>n</em> <em>≤</em> <em>10<sup>6</sup>).  </em></span></p>
<p><span style="font-size: 16px; color: #008000;">&#8211; Dòng tiếp theo chứa <em>n</em> số nguyên dương <em>a<sub>i</sub> (0</em> <em>&lt;</em> <em>a<sub>i</sub></em> <em>≤</em> <em>10<sup>7</sup>, 1</em> <em>≤</em><em> i </em><em>≤</em> <em>n ).</em></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Kết quả:</strong> Ghi ra tệp văn bản <strong>BAI</strong><strong>2.OUT</strong> một số nguyên là số lượng số nguyên tố khác nhau đôi một trong dãy.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table>
<tbody>
<tr>
<td width="200"><span style="font-size: 16px; color: #008000;"><strong>          BAI2.INP</strong></span></td>
<td width="198"><span style="font-size: 16px; color: #008000;"><strong>BAI2.OUT</strong></span></td>
</tr>
<tr>
<td width="200"><span style="font-size: 16px; color: #008000;">5</span></p>
<p><span style="font-size: 16px; color: #008000;">1 3 25 19 8</span></td>
<td width="198"><span style="font-size: 16px; color: #008000;">2</span></td>
</tr>
<tr>
<td width="200"><span style="font-size: 16px; color: #008000;">6</span></p>
<p><span style="font-size: 16px; color: #008000;">2 1 3 6 5 3</span></td>
<td width="198"><span style="font-size: 16px; color: #008000;">3</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;"><strong>Ràng buộc:</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>        &#8211;</em><em> Có </em><em>6</em><em>0%</em><em> số test tương ứng với 60%</em><em> số điểm có </em><em>n ≤ </em><em>10</em><em><sup>4</sup></em> <em>và các số a<sub>i</sub> phân biệt</em><em>;</em></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>        &#8211;</em><em> Có </em><em>4</em><em>0% </em><em>số test tương ứng với 40%</em><em> số điểm có 10</em><em><sup>4 </sup></em><em>&lt; n</em> <em>≤</em><em>10</em><em><sup>6</sup></em></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Bài 3. </strong>(4,0 điểm) <strong>ĐẾM SỐ HOÀN HẢO</strong></span></p>
<p><span style="font-size: 16px; color: #008000;">Cho số nguyên dương <em>n</em> và dãy số nguyên dương . Đếm số lượng số hoàn hảo có trong dãy số trên. Số hoàn hảo là một số nguyên dương mà tổng các ước nguyên dương thực sự của nó bằng chính nó.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Ví dụ:</strong> 6 là số hoàn hảo vì có các ước số (không bao gồm 6) là 1, 2, 3 và 1 + 2 + 3 = 6; 28 là số hoàn hảo vì có các ước số (không bao gồm 28) là 1, 2, 4, 7, 14 và 1 + 2 + 4 + 7 + 14 =28.</span></p>
<h3><span style="font-size: 16px; color: #008000;"><strong>Dữ liệu:</strong> Vào từ tệp văn bản <strong>BAI3.INP</strong> gồm 2 dòng:</span></h3>
<ul>
<li><span style="font-size: 16px; color: #008000;">Dòng đầu tiên chứa số nguyên dương</span></li>
<li><span style="font-size: 16px; color: #008000;">Dòng thứ hai chứa <em>n</em> số nguyên dương .</span></li>
</ul>
<h3><span style="font-size: 16px; color: #008000;"><strong>Kết quả</strong>: Ghi ra tệp văn bản <strong>BAI3.OUT</strong> một số nguyên duy nhất là số lượng số hoàn hảo có trong dãy số trên.</span></h3>
<p><span style="font-size: 16px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="484">
<tbody>
<tr>
<td width="242"><span style="font-size: 16px; color: #008000;"><strong>BAI3.INP</strong></span></td>
<td width="242"><span style="font-size: 16px; color: #008000;"><strong>BAI3.OUT</strong></span></td>
</tr>
<tr>
<td width="242"><span style="font-size: 16px; color: #008000;">4</span></p>
<p><span style="font-size: 16px; color: #008000;">4 6 28 567</span></td>
<td width="242"><span style="font-size: 16px; color: #008000;">2</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 16px; color: #008000;"><strong>Ràng buộc:</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>&#8211; 40% test có n &lt;= 10<sup>3</sup> và a<sub>i</sub>  ≤ 10<sup>3</sup></em></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>&#8211; 30% test có n &lt;= 10<sup>3</sup> và a<sub>i</sub>  ≤ 10<sup>9</sup></em></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>&#8211; 30% test có n ≤ 10<sup>5</sup> và a<sub>i</sub>  ≤ 10<sup>18</sup></em></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Bài 4. </strong>(2,0 điểm) <strong>BIẾN ĐỔI DÃY</strong></span></p>
<p><span style="font-size: 16px; color: #008000;">Cho một dãy số nguyên A gồm N phần tử. Ta có thể thực hiện thao tác sau: Chọn một phần tử trong dãy và tăng giá trị phần tử đó thêm <em>X</em>. Hãy cho biết số thao tác tối thiểu cần thực hiện để tất cả các phần tử trong dãy bằng nhau.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Dữ liệu:</strong> Nhập vào từ tệp văn bản <strong>BAI</strong><strong>4.INP</strong> gồm hai dòng:</span></p>
<p><span style="font-size: 16px; color: #008000;">&#8211; Dòng đầu tiên ghi hai số nguyên <em>N, X (1≤ N ≤100, 1≤ X ≤1000)</em> tương ứng là số phần tử của dãy A và giá trị tăng thêm trong một thao tác.</span></p>
<p><span style="font-size: 16px; color: #008000;">&#8211; Dòng tiếp theo là dãy <em>A</em> gồm <em>N</em> số nguyên <em>a<sub>1</sub>, a<sub>2</sub>,&#8230;, a<sub>N</sub></em> <em>(1≤ a<sub>i</sub> ≤1000)</em>.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Kết quả:</strong> Ghi ra tệp văn bản<strong> BAI4.OUT</strong> số thao tác tối thiểu cần thực hiện để tất cả các phần tử trong dãy bằng nhau. Nếu không có cách biến đổi thì in ra -1.</span></p>
<p><span style="font-size: 16px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="633">
<tbody>
<tr>
<td width="141"><span style="font-size: 16px; color: #008000;"><strong>BAI4.INP</strong></span></td>
<td width="113"><span style="font-size: 16px; color: #008000;"><strong>BAI4.OUT</strong></span></td>
<td width="378"><span style="font-size: 16px; color: #008000;"><strong>Giải thích</strong></span></td>
</tr>
<tr>
<td width="141"><span style="font-size: 16px; color: #008000;">5 2</span></p>
<p><span style="font-size: 16px; color: #008000;">5 1 3 3 5</span></td>
<td width="113"><span style="font-size: 16px; color: #008000;">4</span></td>
<td width="378"><span style="font-size: 16px; color: #008000;">Ta thực hiện thao tác đối với các phần tử thứ 2, 3, 4. Dãy số cuối cùng là 5 5 5 5 5.</span></td>
</tr>
<tr>
<td width="141"><span style="font-size: 16px; color: #008000;">2 100</span></p>
<p><span style="font-size: 16px; color: #008000;">1 10</span></td>
<td width="113"><span style="font-size: 16px; color: #008000;">-1</span></td>
<td width="378"><span style="font-size: 16px; color: #008000;">Không có cách biến đổi.</span></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span style="font-size: 16px; color: #008000;"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- Hết &#8212;&#8212;&#8212;&#8212;&#8212;</strong></span></p>
<p><span style="font-size: 16px; color: #008000;"><em>Thí sinh không sử dụng tài liệu. Giám thị không giải thích gì thêm.</em></span></p>
<p><span style="font-size: 16px; color: #008000;"><strong> </strong></span></p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-lop-8-huyen-trieu-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học Sinh Giỏi Môn Tin Lớp 8 Huyện Triệu Sơn Tỉnh Thanh Hoá Năm 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Đề Thi Học sinh Giỏi Môn Tin Học Lớp 8 Huyện Bỉm Sơn Tỉnh Thanh Hoá Nam 2023-2024</title>
		<link>https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-hoc-lop-8-huyen-bim-son-tinh-thanh-hoa-nam-2023-2024/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 16 Apr 2024 14:36:12 +0000</pubDate>
				<category><![CDATA[Đề Thi Học Sinh Giỏi Môn Tin]]></category>
		<guid isPermaLink="false">https://giasunhatminh.vn/?p=14234</guid>

					<description><![CDATA[<p>PHÒNG GD&#38;ĐT THỊ XÃ BỈM SƠN     KỲ THI HỌC SINH GIỎI KHỐI 8 CẤP THỊ Năm học: 2023-2024 Môn thi: Tin học Thời gian:150 phút (không kể thời gian giao đề) Đề thi gồm có 4 câu, 3 trang. &#160;  TỔNG QUAN ĐỀ THI   &#160; Tên bài File chương trình File dữ [&#8230;]</p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-hoc-lop-8-huyen-bim-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học sinh Giỏi Môn Tin Học Lớp 8 Huyện Bỉm Sơn Tỉnh Thanh Hoá Nam 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table width="704">
<tbody>
<tr>
<td width="300"><span style="font-size: 18px; color: #008000;"><strong>PHÒNG GD&amp;ĐT THỊ XÃ BỈM SƠN</strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong> </strong></span></td>
<td width="404"><span style="font-size: 18px; color: #008000;"><strong>KỲ THI HỌC SINH GIỎI KHỐI 8 CẤP THỊ </strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Năm học: 2023-2024</strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Môn thi: Tin học</strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Thời gian:150 phút </strong><em>(không kể thời gian giao đề)</em></span></p>
<p><span style="font-size: 18px; color: #008000;">Đề thi gồm có 4 câu, 3 trang.</span></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span style="font-size: 18px; color: #008000;"> <strong>TỔNG QUAN ĐỀ THI</strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong> </strong></span></p>
<table width="112%">
<tbody>
<tr>
<td width="14%">&nbsp;</td>
<td width="21%"><span style="font-size: 18px; color: #008000;">Tên bài</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">File chương trình</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">File dữ liệu vào</span></td>
<td width="18%"><span style="font-size: 18px; color: #008000;">File kết quả</span></td>
<td width="9%"><span style="font-size: 18px; color: #008000;">Điểm</span></td>
</tr>
<tr>
<td width="14%"><span style="font-size: 18px; color: #008000;"><strong>Câu </strong><strong>1</strong></span></td>
<td width="21%"><span style="font-size: 18px; color: #008000;">Trực nhật</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">PCLEAN.*</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">PCLEAN.INP</span></td>
<td width="18%"><span style="font-size: 18px; color: #008000;">PCLEAN.OUT</span></td>
<td width="9%"><span style="font-size: 18px; color: #008000;">8</span></td>
</tr>
<tr>
<td width="14%"><span style="font-size: 18px; color: #008000;"><strong>Câu </strong><strong>2</strong></span></td>
<td width="21%"><span style="font-size: 18px; color: #008000;">Ước lẻ</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">UOCLE.*</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">UOCLE.INP</span></td>
<td width="18%"><span style="font-size: 18px; color: #008000;">UOCLE.OUT</span></td>
<td width="9%"><span style="font-size: 18px; color: #008000;">6</span></td>
</tr>
<tr>
<td width="14%"><span style="font-size: 18px; color: #008000;"><strong>Câu 3</strong></span></td>
<td width="21%"><span style="font-size: 18px; color: #008000;">VietNam model</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">VNMOD.*</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">VNMOD.INP</span></td>
<td width="18%"><span style="font-size: 18px; color: #008000;">VNMODE.OUT</span></td>
<td width="9%"><span style="font-size: 18px; color: #008000;">4</span></td>
</tr>
<tr>
<td width="14%"><span style="font-size: 18px; color: #008000;"><strong>Câu 4</strong></span></td>
<td width="21%"><span style="font-size: 18px; color: #008000;">Trọng số của số</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">TRONGSO.*</span></td>
<td width="17%"><span style="font-size: 18px; color: #008000;">TRONGSO.INP</span></td>
<td width="18%"><span style="font-size: 18px; color: #008000;">TRONGSO.OUT</span></td>
<td width="9%"><span style="font-size: 18px; color: #008000;">2</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 18px; color: #008000;"><strong><em> </em></strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><em>Lưu ý:</em></strong><em> Thí sinh thay <strong>*</strong> trong tên chương trình thành <strong> PY, JAVA, CPP</strong> tuỳ theo ngôn ngữ lập trình mà thí sinh sử dụng.</em></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Lập chương trình giải các bài toán sau:</strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><u>Câu 1:</u></strong><strong> Trực nhật.</strong></span></p>
<p><span style="font-size: 18px; color: #008000;">Ở một lớp học có n học sinh. Mỗi bạn đều phải trực nhật và cứ sau một số y ngày nhất định bạn đó mới phải trực nhật lại. Biết rằng xuất phát điểm ban đầu tất cả sẽ đều trực nhật vào ngày đầu tiên. Bạn hãy giúp lớp trưởng tính xem sau bao nhiêu ngày thì tất cả các bạn mới lại cùng nhau trực nhật và khi đó mỗi bạn đã trực nhật bao nhiêu lần.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Dữ liệu: </strong>Vào từ file <strong>PCLEAN.INP </strong>có cấu trúc như sau:</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Dòng đầu chứa số nguyên n (2≤n&lt;100)</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Dòng thứ hai chứa n số nguyên y. (1≤y&lt;100)</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Kết quả: </strong>Ghi ra file <strong>PCLEAN.OUT</strong> theo cấu trúc sau:</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Dòng đầu tiên ghi ra số ngày mà tất cả cùng nhau trực nhật lại.</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Dòng thứ hai chứa n số là số lần một bạn đã trực nhật cho tới lúc tất cả cùng trực nhật.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><em>Ví dụ:</em></strong></span></p>
<table>
<tbody>
<tr>
<td width="208"><span style="font-size: 18px; color: #008000;"><strong>PCLEAN.INP</strong></span></td>
<td width="217"><span style="font-size: 18px; color: #008000;"><strong>PCLEAN.OUT</strong></span></td>
</tr>
<tr>
<td width="208"><span style="font-size: 18px; color: #008000;">3</span></p>
<p><span style="font-size: 18px; color: #008000;">2 3 4</span></td>
<td width="217"><span style="font-size: 18px; color: #008000;">12</span></p>
<p><span style="font-size: 18px; color: #008000;">6 4 3</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 18px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><u>Câu 2:</u> Ước lẻ.</span></p>
<p><span style="font-size: 18px; color: #008000;">Năm nay, Bờm được chọn vào đội tuyển Tin học. Cuội liền đố Bờm: “Tớ cứ cho cậu một số nguyên dương N&lt;=10<sup>6</sup>, cậu có đưa ra nhanh được các ước lẻ của nó không?”. Vì mới học lập trình nên Bờm còn lúng túng. Em hãy giúp Bờm liệt kê các ước số lẻ của mỗi số N với Q câu hỏi của Cuội.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Dữ liệu: </strong>Vào từ file <strong>UOCLE.INP</strong> có cấu trúc sau:</span></p>
<ul>
<li><span style="font-size: 18px; color: #008000;">Dòng đầu tiên là một số nguyên Q&lt;10<sup>5</sup>.</span></li>
<li><span style="font-size: 18px; color: #008000;">Q dòng tiếp theo là Q số nguyên N mà Bờm hỏi</span></li>
</ul>
<p><span style="font-size: 18px; color: #008000;"><strong>Kết quả: </strong>Ghi ra file <strong>UOCLE.OUT</strong></span></p>
<ul>
<li><span style="font-size: 18px; color: #008000;">Q dòng là câu trả lời</span></li>
</ul>
<p><span style="font-size: 18px; color: #008000;"><strong>Ví dụ</strong>:</span></p>
<table width="320">
<tbody>
<tr>
<td width="160"><span style="font-size: 18px; color: #008000;"><strong>UOCLE.INP</strong></span></td>
<td width="160"><span style="font-size: 18px; color: #008000;"><strong>UOCLE.OUT</strong></span></td>
</tr>
<tr>
<td width="160"><span style="font-size: 18px; color: #008000;">3</span></p>
<p><span style="font-size: 18px; color: #008000;">60</span></p>
<p><span style="font-size: 18px; color: #008000;">12</span></p>
<p><span style="font-size: 18px; color: #008000;">14</span></td>
<td width="160"><span style="font-size: 18px; color: #008000;">1 3 5 15</span></p>
<p><span style="font-size: 18px; color: #008000;">1 3</span></p>
<p><span style="font-size: 18px; color: #008000;">1 7</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 18px; color: #008000;"><strong> </strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><u>Câu 3:</u></strong><strong> VietNam Model</strong></span></p>
<p><span style="font-size: 18px; color: #008000;">Trong vòng chung kết cuộc thi “Vietnam Next Top Model” trên VTV3 các thí sinh được đánh số báo danh là một số nguyên dương có giá trị không vượt quá 1000. Khán giả xem truyền hình có thể bình chọn cho thí sinh mình yêu thích bằng cách nhắn tin qua điện thoại di động. Ban tổ chức nhận được tin nhắn hợp lệ của N khán giả (các khán giả được đánh số từ 1 đến N), khán giả thứ i bình chọn cho thí sinh mang số báo danh a<sub>i</sub>. Hãy liệt kê số báo danh của những thí sinh được nhiều khán giả bình chọn nhất theo thứ tự tăng dần.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Dữ liệu:</strong> Vào từ file văn bản <strong>VNMOD.INP </strong>có cấu trúc sau:</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Dòng đầu tiên ghi số nguyên dương N là số lượng khán giả có tin nhắn bình chọn hợp lệ (N≤10<sup>5</sup>).</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; N dòng tiếp theo, dòng thứ i ghi số nguyên dương a<sub>i</sub> là số báo danh của thí sinh mà khán giả thứ i bình chọn (0 &lt; a<sub>i</sub> ≤ 10<sup>6</sup>).</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Kết quả:</strong> Ghi ra file văn bản <strong>VNMOD.OUT</strong> có cấu trúc sau:</span></p>
<p><span style="font-size: 18px; color: #008000;">&#8211; Danh sách thí sinh được nhiều khán giả bình chọn nhất. Nếu có nhiều thí sinh có lượt bình chọn nhiều nhất bằng nhau thì in ra danh sách đó theo thứ tự số báo danh tăng dần.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="274">
<tbody>
<tr>
<td width="144"><span style="font-size: 18px; color: #008000;"><strong>VNMOD.INP</strong></span></td>
<td width="130"><span style="font-size: 18px; color: #008000;"><strong>VNMOD.OUT</strong></span></td>
</tr>
<tr>
<td width="144"><span style="font-size: 18px; color: #008000;">5</span></p>
<p><span style="font-size: 18px; color: #008000;">3</span></p>
<p><span style="font-size: 18px; color: #008000;">1</span></p>
<p><span style="font-size: 18px; color: #008000;">3</span></p>
<p><span style="font-size: 18px; color: #008000;">2</span></p>
<p><span style="font-size: 18px; color: #008000;">2</span></td>
<td width="130"><span style="font-size: 18px; color: #008000;">2</span></p>
<p><span style="font-size: 18px; color: #008000;">3</span></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span style="font-size: 18px; color: #008000;"><strong><u>Câu 4:</u></strong> <strong>Trọng số của xâu.</strong></span></p>
<p><span style="font-size: 18px; color: #008000;">Trọng số của một xâu S là số trung bình cộng của các chữ số trong sâu S đó. Nếu xâu S không có chữ số nào thì có trọng lượng là 0. Ví dụ: Xâu &#8220;ab011c2&#8221; có trọng số là 1.</span></p>
<p><span style="font-size: 18px; color: #008000;">Yêu cầu: Cho N xâu kí tự, hãy tìm xâu có trọng số lớn nhất. Nếu có nhiều xâu có trọng số bằng nhau thì hãy ghi ra xâu đầu tiên tìm được, nếu không tìm thấy xâu có trọng số lớn nhất thì ghi 0.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Dữ liệu:</strong> Vào từ file <strong>TRONGSO.INP</strong> có cấu trúc sau:</span></p>
<p><span style="font-size: 18px; color: #008000;">          &#8211;  Dòng đầu ghi số nguyên dương N là số lượng xâu (1&lt;=N&lt;=100)</span></p>
<p><span style="font-size: 18px; color: #008000;">          &#8211;  N dòng tiếp theo mỗi dòng ghi một xâu S.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Kết quả:</strong> Ghi ra flie <strong>TRONGSO.OUT</strong> kết quả tìm được.</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong>Ví dụ:</strong></span></p>
<table width="648">
<tbody>
<tr>
<td width="160"><span style="font-size: 18px; color: #008000;"><strong>TRONGSO.INP</strong></span></td>
<td width="170"><span style="font-size: 18px; color: #008000;"><strong>TRONGSO.OUT</strong></span></td>
<td width="319"><span style="font-size: 18px; color: #008000;"><strong>Giải thích</strong></span></td>
</tr>
<tr>
<td width="160"><span style="font-size: 18px; color: #008000;">3</span></p>
<p><span style="font-size: 18px; color: #008000;">Aaaaaaa</span></p>
<p><span style="font-size: 18px; color: #008000;">10a3bb2021</span></p>
<p><span style="font-size: 18px; color: #008000;">100256</span></td>
<td width="170"><span style="font-size: 18px; color: #008000;">100256</span></td>
<td width="319"><span style="font-size: 18px; color: #008000;">1+0+1+0+2+5+6=14/6=2.33 lớn nhất</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 18px; color: #008000;"><strong>Ràng buộc:</strong></span></p>
<p><span style="font-size: 18px; color: #008000;">* 60% số test tương ứng với xâu S có độ dài không quá 255.</span></p>
<p><span style="font-size: 18px; color: #008000;">* 40% số test tương ứng với xâu S có độ dài không quá 1000.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: 18px; color: #008000;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Hết&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><em>Cán bộ coi thi không giải thích gì thêm</em></strong></span></p>
<p><span style="font-size: 18px; color: #008000;"><strong><em> </em></strong></span></p>
<p><span style="font-size: 18px; color: #008000;">Họ và tên thí sinh:…………………………………………. SBD:……………</span></p>
<p>&nbsp;</p>
<p>The post <a href="https://giasunhatminh.vn/de-thi-hoc-sinh-gioi-mon-tin-hoc-lop-8-huyen-bim-son-tinh-thanh-hoa-nam-2023-2024/">Đề Thi Học sinh Giỏi Môn Tin Học Lớp 8 Huyện Bỉm Sơn Tỉnh Thanh Hoá Nam 2023-2024</a> appeared first on <a href="https://giasunhatminh.vn">0968 974 858 - Gia Sư Nhật Minh</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
