ΠΔΠ-24 (2012) - Phase A (function)

View as PDF

Submit solution

Points: 10 (partial)
Time limit: 3.0s
Memory limit: 64M

Author:
Problem types
Allowed languages
C, C++, Java, Pascal, Python

Cloud Computing

Cloud Computing is a comprehensive platform for providing on-demand computing resources over a computer network. The basic idea is to offer any kind of application or service to anyone with authorized access from anywhere they are located. Following the success of remote education at the 23rd PDP camp, the EPY is exploring the utilization of this technology with the aim of consolidating the services and applications provided by various servers of the PDP. An additional service under consideration is the "code discovery" service. In other words, there is a request for the recognition of the functionality performed by the code, based on specific input and the corresponding output of results.

Problem:

Develop a program in one of the IOI languages that, after reading data processed by the 'hidden' code from an input file, returns the corresponding results to a text file.

Input Files:

The input files named function.in are text files with the following structure: They have exactly one line with two integers (N, M) separated by a space. (1 \le N, M \le 10.000)

Output Files:

The output files named function.out are text files with the following structure: They have one line with zero, one, or more integers K separated by a space. (2 < K < 10.000) . These numbers, if present, represent the results of processing the input data.

Examples of Input - Output Files:
1st

STDIN (function.in)

31 1

STDOUT (function.out)

3 5 7 11 13 17 19 23 29
2nd

STDIN (function.in)

163 167

STDOUT (function.out)

3d

STDIN (function.in)

100 199

STDOUT (function.out)

101 103 107 109 113 127 131 137
139 149 151 157 163 167 173 179
181 191 193 197
optional

STDIN (function.in)

197 3

STDOUT (function.out)

5 7 11 13 17 19 23 29 31 37 41 43 47 53 59
61 67 71 73 79 83 89 97 101 103 107 109
113 127 131 137 139 149 151 157 163 167
173 179 181 191 193

Maximum Time 3 sec


Comments

There are no comments at the moment.