I<br />
<br />
PHONG CIAO<br />
<br />
VA DAO T4O<br />
NAMTRUC<br />
<br />
oE cgirrru<br />
<br />
elffL<br />
<br />
DE<br />
<br />
DU. C<br />
<br />
rguc<br />
<br />
firr<br />
<br />
HQC SINr{ crOI CAp mryEN NAM HQC20L7 - 2018<br />
<br />
M6n: TIN HQC - Lop: I<br />
Thoi gian ldm bdi: 150 phrit<br />
DC thi g6m: 02 trang<br />
<br />
.<br />
<br />
( a,0 diAn) Tinh<br />
<br />
ing<br />
<br />
T\n<br />
<br />
biti: tong.pas<br />
<br />
Cho s6 tu nhi6n N ( I < t/ < 106 ). Tinh t6ng sau.<br />
<br />
.....+<br />
<br />
2l\r<br />
^S = 2 + 4 + 6 +<br />
Dir li6u: vio tir t0p vdn ban ToNG.INP bao g6m 1 s6 ttr nhiOn N duy nh6t.<br />
K6t quri: Ghi ra tcp viin bin ToNG.our. Ghi kOt cprA cira t6ng trOn.<br />
Vi<br />
<br />
dr.r:<br />
<br />
TONG.II{P<br />
<br />
TONG.OUT<br />
<br />
1<br />
<br />
2<br />
<br />
Ciiu 2 : (5,0 di€nt) SO Dep<br />
TAn bcii: soclep.pas<br />
M6t sa) netty6n clttong c1u'cl-c goi li s5 etep n6u t6ng c6c chri so cLra no trong h0 thip ph1n<br />
chia hOt cho sd chu's6 cr-ra n6. Cfc s6 du'crc xet kh6ng chira chf,'s6 0 c6 nghia (0123).<br />
Y6u ciu: IJiiy cho Uiet s5 N ccl "Eep" hay kh6ng?<br />
Dfr'li6u: vio tir t0p v[n bin SoDEp.INp ch[ra rn6t so N11< ]/ < 10r8 )<br />
Dir li6u: Ghi ra tOp viin ban SoDEl,.ouT chfra xdu ki tr.r S thu6c {.,Co,,;,,Khong,,} tr)y<br />
theo N la s6 "Dep" htry khdng.<br />
Vi tlu:<br />
SODEP.INP<br />
<br />
Citr 3: t 5,0 di,;int ) T6ng<br />
Cho s5 ttr nhi6n N"<br />
tinh t6ng cic uryc cl6.<br />
<br />
Dir li6u: Vr)o<br />
<br />
/.J )<br />
<br />
SODEP.OUT<br />
Khong<br />
<br />
t7<br />
<br />
Co<br />
<br />
rr'6'c<br />
<br />
I( (l< Ar