summaryrefslogblamecommitdiffstats
path: root/inf/zotks/2/ž
blob: c7f947a1a53d626c66d9af032748f162a8704e2e (plain) (tree)



















                                                        
#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;
}