<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Đề thi HSG môn Tin học 2017-2018</title>
<meta name="description" content="Đề thi HSG môn Tin học 2017-2018 - Savefile - Tin Tức - http&#x3A;&#x002F;&#x002F;thptphuquoc.edu.vn&#x002F;savefile&#x002F;de-thi-hsg&#x002F;de-thi-hsg-mon-tin-hoc-2017-2018-24.html">
<meta name="author" content="Trường THPT Phú Quốc">
<meta name="copyright" content="Trường THPT Phú Quốc [webmaster@thptphuquoc.edu.vn]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.3">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Đề thi HSG môn Tin học 2017-2018">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - http&#x3A;&#x002F;&#x002F;thptphuquoc.edu.vn&#x002F;savefile&#x002F;de-thi-hsg&#x002F;de-thi-hsg-mon-tin-hoc-2017-2018-24.html">
<meta property="og:site_name" content="Trường THPT Phú Quốc">
<meta property="og:url" content="http://thptphuquoc.edu.vn/de-thi-hsg/de-thi-hsg-mon-tin-hoc-2017-2018-24.html">
<link rel="shortcut icon" href="http://thptphuquoc.edu.vn/favicon.ico">
<link rel="canonical" href="http://thptphuquoc.edu.vn/de-thi-hsg/de-thi-hsg-mon-tin-hoc-2017-2018-24.html">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tin-tuc/" title="Tin Tức - TIN TỨC" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/thong-bao/" title="Tin Tức - THÔNG BÁO" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tuyen-sinh-lop-10/" title="Tin Tức - TUYỂN SINH LỚP 10" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cac-to-chuc/" title="Tin Tức - CÁC TỔ CHỨC" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/dang-bo/" title="Tin Tức - Đảng bộ" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cac-chi-bo/" title="Tin Tức - Các chi bộ" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/ban-giam-hieu/" title="Tin Tức - Ban giám hiệu" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cong-doan/" title="Tin Tức - Công đoàn" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/to-chuyen-mon-83/" title="Tin Tức - Tổ chuyên môn" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/doan-thanh-nien/" title="Tin Tức - Đoàn thanh niên" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/hoi-khuyen-hoc/" title="Tin Tức - Hội khuyến học" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/hoi-phu-huynh-hs/" title="Tin Tức - Hội cha mẹ học sinh" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/noo/" title="Tin Tức - NỘI QUY, QUY CHẾ" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tkb/" title="Tin Tức - THỜI KHÓA BIỂU" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tuyen-dung/" title="Tin Tức - CÁC KẾ HOẠCH" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/dien-hinh-tien-tien/" title="Tin Tức - ĐIỂN HÌNH TIÊN TIẾN" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tai-nguyen/" title="Tin Tức - TÀI NGUYÊN" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/tai-lieu/" title="Tin Tức - Tài liệu" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/de-kiem-tra/" title="Tin Tức - Đề thi, đề kiểm tra" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/de-thi-hsg/" title="Tin Tức - Đề thi học sinh giỏi" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/sang-kien-giai-phap/" title="Tin Tức - Sáng kiến, giải pháp" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/phuong-phap-hoc-tap/" title="Tin Tức - Phương pháp học tập" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cac-van-ban/" title="Tin Tức - Các văn bản" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cac-phan-mem/" title="Tin Tức - Các phần mềm" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/trai-nghiem-sang-tao/" title="Tin Tức - TRẢI NGHIỆM-SÁNG TẠO" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/bai-viet-26/" title="Tin Tức - BÀI VIẾT" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/cac-cau-lac-bo/" title="Tin Tức - ĐOÀN, HỘI" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/goc-doan-truong/" title="Tin Tức - Đoàn trường" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/goc-cong-doan/" title="Tin Tức - Công đoàn" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/clb-toan-hoc/" title="Tin Tức - Câu lạc bộ Toán học" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/clb-tieng-anh/" title="Tin Tức - Câu lạc bộ Tiếng anh" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/http-123cunghoctin-com/" title="Tin Tức - Câu lạc bộ Tin học" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/clb-van-hoc/" title="Tin Tức - Câu lạc bộ Văn học" type="application/rss+xml">
<link rel="alternate" href="http://thptphuquoc.edu.vn/rss/thu-vien/" title="Tin Tức - THƯ VIỆN" type="application/rss+xml">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/assets/js/language/vi.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/assets/js/global.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/themes/default/js/news.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/themes/default/js/main.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/themes/default/js/custom.js">
<link rel="preload" as="script" href="http://thptphuquoc.edu.vn/themes/default/js/bootstrap.min.js">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/themes/default/css/bootstrap.min.css">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/themes/default/css/style.css">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/themes/default/css/style.responsive.css">
<link rel="StyleSheet" href="http://thptphuquoc.edu.vn/themes/default/css/news.css">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/themes/default/css/custom.css">
<link rel="stylesheet" href="http://thptphuquoc.edu.vn/assets/css/default.vi.0.css">
<style>
	body{background: #fff;}
</style>
    </head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Trường THPT Phú Quốc</h2>
		<p class="pull-right"><a title="Trường THPT Phú Quốc" href="http://thptphuquoc.edu.vn/">http://thptphuquoc.edu.vn</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Đề thi HSG môn Tin học 2017-2018</h1>
		<ul class="list-inline">
			<li>Thứ sáu - 02/02/2018 00:49</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
			Em hãy dùng ngôn ngữ lập trình Pascal viết chương trình để giải các bài toán sau, mỗi bài viết một chương trình và lưu vào D:\HSG2017\Tên_bài.PAS
		</div>
		<div id="bodytext" class="clearfix">
			<table align="center" class="Table" style="border-collapse:collapse; border:undefined">
	<tbody>
		<tr>
			<td style="width:140.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="187"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Trường THPT Phú Quốc</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Tổ Toán - Tin</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>--------------</b></span></span></td>
			<td style="width:302.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="403"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>ĐỀ THI HỌC SINH GIỎI CẤP TRƯỜNG</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>NĂM HỌC 2017-2018</b></span></span><br  />
			<span style="font-size:12pt"><span style="tab-stops:12.3pt center 145.8pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thời gian: 120&nbsp; phút</b></span></span></span><br  />
			&nbsp;</td>
		</tr>
	</tbody>
</table>
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><i>Em hãy dùng ngôn ngữ lập trình Pascal viết chương trình để giải các bài toán sau, mỗi bài viết một chương trình và lưu vào <b>D:\HSG2017\Tên_bài.PAS</b></i></span></span><br  />
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b><u>Bài 1</u></b>. Nhập vào từ bàn phím số nguyên dương n. Xuất ra màn hình</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">n có phải là số nguyên tố hay không</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tất cả các ước của n</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các ước nguyên tố của n</span></span></span></li>
</ol>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Ví dụ</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập n=10</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">10 không phải là số nguyên tố</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Các ước&nbsp; của 10 là: 1 2 5 10</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các ước nguyên tố của 10 là 7</span></span></span></li>
</ol>
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b><u>Bài 2</u></b>. Nhập số nguyên dương n. Xuất ra màn hình</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Số&nbsp; đảo ngược của n</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các chữ số của n</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">N là số có mấy chữ số</span></span></span></li>
</ol>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Ví dụ</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập n=246</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Số đảo ngược của 246 là 642</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các chữ số của 246 là 12</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">246 là số có 3 chữ số</span></span></span></li>
</ol>
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b><u>Bài 3</u></b>. Nhập số nguyên dương n, tạo mảng a gồm n phần tử có giá trị tăng dần lần lượt a&#91;1&#93;=1, a&#91;2&#93;=2,…,a&#91;n&#93;=n.</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần xóa là x, xóa phần tử có giá trị x, xuất mảng sau khi xóa</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần thêm là y, vị trí cần thêm là k, thêm y vào mảng tại vị trí k và xuất mảng sau khi thêm.</span></span></span></li>
</ol>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Ví dụ</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập n=10</span></span>

<ol style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần xóa x=5</span></span></span></li>
</ol>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi xóa: 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 6&nbsp; 7&nbsp; 8&nbsp; 9&nbsp; 10</span></span>

<ol start="2" style="list-style-type:lower-alpha">
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần thêm y=20</span></span></span></li>
</ol>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập vị trí cần thêm k=7</span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi thêm: 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 6&nbsp; 7&nbsp;&nbsp; 20&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp; 9&nbsp; 10</span></span><br  />
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b><u>Bài 4.</u></b> Nhập họ và tên một người. Chuẩn hóa họ tên người đó và xuất ra màn hình</span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Quy tắc chuẩn hóa</b></span></span>

<ul>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Họ tên chỉ chứa các ký tự a &gt; z, A -&gt; Z</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Ký tự đầu mỗi từ viết hoa, các ký tự còn lại chữ thường</span></span></span></li>
	<li style="margin:0mm 0mm 0.0001pt"><span style="font-size:12pt"><span style="tab-stops:list 36.0pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mỗi từ chỉ cách nhau một khoảng trắng</span></span></span></li>
</ul>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Ví dụ</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tran van tam&nbsp; =&gt; <b>Tran Van Tam</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">9T0ran T097HI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N;;;;G,,,O….C =&gt; <b>Tran Thi Ngoc</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">L999e…&nbsp;&nbsp;&nbsp; va000n&nbsp;&nbsp; x000y…z&nbsp; =&gt; <b>Le Van Xyz</b></span></span><br  />
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>-----------------------Hết---------------------</b></span></span><br  />
<br clear="all" style="page-break-before:always" />
&nbsp;
<table align="center" class="Table" style="border-collapse:collapse; border:undefined">
	<tbody>
		<tr>
			<td style="width:140.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="187"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Trường THPT Phú Quốc</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Tổ Toán - Tin</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>--------------</b></span></span></td>
			<td style="width:302.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="403"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>ĐỀ THI HỌC SINH GIỎI CẤP TRƯỜNG</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>NĂM HỌC 2017-2018</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Thời gian: 120&nbsp; phút</b></span></span><br  />
			&nbsp;</td>
		</tr>
	</tbody>
</table>
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>ĐÁP ÁN VÀ HƯỚNG DẪN CHẤM</b></span></span><br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Bài 1. (3 điểm)</b></span></span><br  />
&nbsp;
<table class="Table" style="border-collapse:collapse; border:solid windowtext 1.0pt">
	<tbody>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Nhập vào</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:297.0pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Xuất ra</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:81.0pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=10</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">10 <b>không phải là số nguyên tố</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Các ước&nbsp; của 10 là: <b>1 2 5 10</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các ước nguyên tố của 10 là <b>7</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=19</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">19 <b>là số nguyên tố</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Các ước&nbsp; của 19 là: <b>1 19</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các ước nguyên tố của 19 là <b>19</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=999</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">999 <b>không phải là số nguyên tố</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Các ước&nbsp; của 999 là: <b>1 3 9 27&nbsp; 37 111 333 999</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các ước nguyên tố của 999 là <b>40</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
	</tbody>
</table>
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Bài 2. (3 điểm)</b></span></span><br  />
&nbsp;
<table class="Table" style="border-collapse:collapse; border:solid windowtext 1.0pt">
	<tbody>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Nhập vào</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:297.0pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Xuất ra</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:81.0pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=246</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Số đảo ngược của 246 là <b>642</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các chữ số của 246 là <b>12</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">246 là số có <b>3</b> chữ số</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=123450</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Số đảo ngược của 123450 là <b>54321</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các chữ số của 123450 là <b>15</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">123450 là số có <b>6 </b>chữ số</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:86.4pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="115"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=246891011</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:297.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="396"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Số đảo ngược của 246891011 là <b>110198642</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tổng các chữ số của 246891011 là <b>32</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">246891011 là số có <b>9</b> chữ số</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:81.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="108"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
	</tbody>
</table>
<br  />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Bài 3. (2 điểm)10</b></span></span><br  />
&nbsp;
<table class="Table" style="border-collapse:collapse; border:solid windowtext 1.0pt">
	<tbody>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:38.85pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="52"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Nhập vào</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:376.05pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="501"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Xuất ra</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:49.5pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="66"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:38.85pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="52"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=10</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:376.05pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="501"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần xóa x=5</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi xóa: <b>1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 6&nbsp; 7&nbsp; 8&nbsp; 9&nbsp; 10</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần thêm y=20</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập vị trí cần thêm k=7</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi thêm: 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 6&nbsp; 7&nbsp;&nbsp; 20&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp; 9&nbsp; 10</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:49.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="66"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:38.85pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="52"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>N=20</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:376.05pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="501"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần xóa x=10</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi xóa: <b>1&nbsp; 2&nbsp; 3&nbsp; 4 &nbsp;6&nbsp; 7&nbsp; 8&nbsp; 9&nbsp; 11 12 13 14 15 16 17 18 19 20</b></span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập giá trị cần thêm y=100</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Nhập vị trí cần thêm k=1</span></span><br  />
			<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Mảng sau khi thêm: <b>100 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 6&nbsp; 7&nbsp; 8&nbsp; 9&nbsp; 11 12 13 14 15 16 17 18 19 20</b></span></span><br  />
			&nbsp;</td>
			<td style="border-bottom:solid windowtext 1.0pt; width:49.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="66"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>1 điểm</b></span></span></td>
		</tr>
	</tbody>
</table>
<br  />
<br clear="all" style="page-break-before:always" />
<span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Bài 4 (2 điểm)</b></span></span><br  />
&nbsp;
<table class="Table" style="border-collapse:collapse; border:solid windowtext 1.0pt">
	<tbody>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:189.9pt; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="253"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Nhập vào</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:171.0pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="228"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Xuất ra</b></span></span></td>
			<td style="border:solid windowtext 1.0pt; width:103.5pt; border-left:none; padding:0mm 5.4pt 0mm 5.4pt" valign="top" width="138"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:189.9pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="253"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">Tran van tam&nbsp; </span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:171.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="228"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Tran Van Tam</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:103.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="138"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>0.5 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:189.9pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="253"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">9T0ran T097HI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:171.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="228"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Tran Thi Ngoc</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:103.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="138"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>0.5 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:189.9pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="253"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">L999e…&nbsp;&nbsp;&nbsp; va000n&nbsp;&nbsp; x000y…z&nbsp;</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:171.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="228"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>Le Van Xyz</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:103.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="138"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>0.5 điểm</b></span></span></td>
		</tr>
		<tr>
			<td style="border:solid windowtext 1.0pt; width:189.9pt; border-top:none; padding:0mm 5.4pt 0mm 5.4pt" width="253"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif">---10a01--&nbsp;&nbsp;&nbsp; --,,,,,….&nbsp;&nbsp;&nbsp; B;;;;;;;&nbsp;&nbsp; c-----</span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:171.0pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="228"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>A B C</b></span></span></td>
			<td style="border-bottom:solid windowtext 1.0pt; width:103.5pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0mm 5.4pt 0mm 5.4pt" width="138"><span style="font-size:12pt"><span style="font-family:&#039;Times New Roman&#039;,serif"><b>0.5 điểm</b></span></span></td>
		</tr>
	</tbody>
</table>
<br  />
&nbsp;
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="http://thptphuquoc.edu.vn/de-thi-hsg/de-thi-hsg-mon-tin-hoc-2017-2018-24.html" title="Đề thi HSG môn Tin học 2017-2018">http://thptphuquoc.edu.vn/de-thi-hsg/de-thi-hsg-mon-tin-hoc-2017-2018-24.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Trường THPT Phú Quốc
		</div>
		<div id="contact">
			<a href="mailto:webmaster@thptphuquoc.edu.vn">webmaster@thptphuquoc.edu.vn</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="http://thptphuquoc.edu.vn/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="http://thptphuquoc.edu.vn/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=7,nv_my_abbr="+07",nv_cookie_prefix="nv4c_t8851",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=1,nv_is_recaptcha=0;</script>
<script src="http://thptphuquoc.edu.vn/assets/js/language/vi.js"></script>
<script src="http://thptphuquoc.edu.vn/assets/js/global.js"></script>
<script src="http://thptphuquoc.edu.vn/themes/default/js/news.js"></script>
<script src="http://thptphuquoc.edu.vn/themes/default/js/main.js"></script>
<script src="http://thptphuquoc.edu.vn/themes/default/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "http://thptphuquoc.edu.vn",
            "logo": "http://thptphuquoc.edu.vn/uploads/baner.jpg"
        }
        </script>
<script src="http://thptphuquoc.edu.vn/themes/default/js/bootstrap.min.js"></script>
</body>
</html>