27th International Olympiad in Informatics

Sunday, July 26 - Sunday, August 2, Almaty, Kazakhstan

KZ EN RU
Problems and Solutions

Day 1

Official English version: noticeboxesscalesteams.

Test data: boxes, scales, teams.

Editorials: boxes, scales, teams.

Translations:

Notice: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, de-AT.AUT, de-LU.LUX, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHE.CHE, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LVA.LVA, en-MDA.MDA, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, sv-SE.SWE, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Boxes: ar-SY.SYR, az-AZ.AZE, bs-BA.BIH, cs-CZ.CZE, de-AT.AUT, de-LU.LUX, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHE.CHE, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LKA.LKA, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, ky-KG.KGZ, lt-LT.LTU, nb-NO.NOR, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, sv-SE.SWE, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Scales: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, de-AT.AUT, de-LU.LUX, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHE.CHE, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LKA.LKA, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, lt-LT.LTU, nb-NO.NOR, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, sv-SE.SWE, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Teams: ar-SY.SYR, az-AZ.AZE, bs-BA.BIH, cs-CZ.CZE, de-AT.AUT, de-LU.LUX, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHE.CHE, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LKA.LKA, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, ky-KG.KGZ, lt-LT.LTU, nb-NO.NOR, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, sv-SE.SWE, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Day 2

Official English version: noticehorsessortingtowns.

Test data: horses, sorting, towns.

Editorials: horses, sorting, towns.

Notice: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHL.CHL, en-DEU.DEU, en-ISC.ISC, en-KOR.KOR, en-LVA.LVA, en-MDA.MDA, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, nb-NO.NOR, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, ro-RO.ROU, ru-RU.RUS, sr-RS.SRB, th-TH.THA, tr-TR.TUR

Horses: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHE.CHE, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, lt-LT.LTU, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Sorting: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, de-AT.AUT, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, lt-LT.LTU, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

Towns: ar-SY.SYR, bs-BA.BIH, cs-CZ.CZE, el-CY.CYP, el-GRC.GRC, en-BGR.BGR, en-BOL.BOL, en-CHL.CHL, en-DEU.DEU, en-HRV.HRV, en-ISC.ISC, en-KOR.KOR, en-LVA.LVA, en-MDA.MDA, en-MKD.MKD, en-MNE.MNE, en-MNG.MNG, en-NLD.NLD, en-PRT.PRT, en-VEN.VEN, en-VNM.VNM, es-AR.ARG, es-CO.COL, es-CU.CUB, es-DOM.DOM, es-ES.ESP, es-MX.MEX, et-EE.EST, fa-IRN.IRN, fi-FI.FIN, fr-BE.BEL, fr-FR.FRA, fr-TUN.TUN, he-IL.ISR, hu-HU.HUN, hy-AM.ARM, it-IT.ITA, ja-JP.JPN, ka-GE.GEO, lt-LT.LTU, nl-BE.BEL-NL, pl-PL.POL, pt-BR.BRA, pt-MO.MAC, ro-RO.ROU, ru-RU.RUS, sk-SK.SVK, sl-SVN.SVN, sr-RS.SRB, th-TH.THA, tr-TR.TUR, uk-UA.UKR, zh-CN.CHN, zh-TW.TWN

contacts
Republic Avenue, 34а, Astana
+7 7272 64 43 44
International Olympiad in Informatics (IOI)

The International Olympiad in Informatics (IOI) is an annual competitive programming competition for secondary school students. The first IOI was held in 1989 in Pravetz, Bulgaria.