1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <cstdio>
#include "cielib.h"

int ppos[500];
char buffer[10000007];

int main() {
  char c=0;
  int cc=0;
  while ((c = getchar()) > 0) {
    buffer[cc++] = c;
  }
  int d_v, k_v, r_v;
	sscanf(buffer, "%d", &d_v);
	sscanf(buffer, "%d", &k_v);
	sscanf(buffer, "%d", &r_v);
	for(int i = 0; i < d_v; ++i) {
		sscanf(buffer, "%d", &ppos[i]);
	}
  for (int i = 0 ; i < cc; i++) {
    ungetc(buffer[i], stdin);
  }
  czyCieplo(ppos);
  znalazlem(ppos);
}