Magyar Information Contest Journal Articles

# Problem I. 154. (March 2007)

I. 154. Make a program that generates a picture gallery: it takes images of a folder and produces a web page with the gallery in the same folder.

First your program reads the full path of the folder from the command line (for example, i154 c:\mypictures\web\today\), then makes a list of its files (subfolders should be ignored). The folder contains only .gif, .png and .jpg extensions, but every file has two copies: a larger and a smaller one. The smaller copy is a thumbnail image, its name begins with a letter k'' but the name and extension are otherwise identical to the original file.

Then, in the same folder, your program generates one index.html file and several .html files, each corresponding to a picture having the same name. The page index.html has the thumbnail images in four columns: they are in fact all links to the corresponding .html pages containing the original pictures. The pages with the original images should also contain a left and a right arrow (both being links to the previous and next original images in the list), further, a small icon referring back to the thumbnail images.

The source code of the program (i154.pas, i154.cpp, ...) generating the HTML pages should be submitted. We also take into account the design of the web pages generated.

(10 pont)

Deadline expired on April 16, 2007.

Sorry, the solution is available only in Hungarian. Google translation

A feladatra sok kiváló megoldás született, ezek közül a javító számára "legszebbet" adjuk közre: Szoldatics András kapuvári versenyző Delphiben készült (i154.dpr) munkáját.

A kész programokat például az alábbi mappa képeivel teszteltük (i154.zip).

### Statistics:

 17 students sent a solution. 10 points: Balambér Dávid, Biró János, Danka Miklós András, Gilián Zoltán, Hunyady Márton, Kovács 129 Péter, Ridinger Tamás, Szoldatics András, Vincze János. 9 points: Györök Péter, Véges Márton. 8 points: 2 students. 7 points: 1 student. 6 points: 2 students. 3 points: 1 student.

 Our web pages are supported by: Morgan Stanley