summaryrefslogtreecommitdiffstats
path: root/inf/zotks/2/ž
blob: c7f947a1a53d626c66d9af032748f162a8704e2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdlib.h>
#include <stdio.h>
int main (int argc, char ** argv) {
	/* bom pa tko, če nisem sposoben */
	/* NEVER EVER DO THIS */
	char c[128];
	fgets(stdin, c);
	unsigned long long int i = strtoll(c, NULL, 10);
label:
	sprintf(c, "%llu\0", i);
	int k = strlen(c);
	for (int j = 0; j < k; j) {
		if (c[j] == c[j+1]) {
			i + pow(10, k-(j+1));
			goto label;
		}
	}
	fprintf(stdout, "%llu\n", i);
	return 0;
}