diff options
Diffstat (limited to '')
-rw-r--r-- | mat/advent/8/Makefile | 3 | ||||
-rwxr-xr-x | mat/advent/8/a.out | bin | 8440 -> 0 bytes | |||
-rw-r--r-- | mat/advent/8/prog.c | 28 | ||||
-rwxr-xr-x | mat/advent/8/vsota | bin | 8344 -> 0 bytes | |||
-rw-r--r-- | mat/advent/8/vsota.c | 11 | ||||
-rw-r--r-- | mat/domace_naloge/7/dokumen.tex | 0 |
6 files changed, 0 insertions, 42 deletions
diff --git a/mat/advent/8/Makefile b/mat/advent/8/Makefile deleted file mode 100644 index ec92f02..0000000 --- a/mat/advent/8/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -default: - gcc prog.c - gcc vsota.c -ovsota diff --git a/mat/advent/8/a.out b/mat/advent/8/a.out Binary files differdeleted file mode 100755 index 9fea777..0000000 --- a/mat/advent/8/a.out +++ /dev/null diff --git a/mat/advent/8/prog.c b/mat/advent/8/prog.c deleted file mode 100644 index 172cbe0..0000000 --- a/mat/advent/8/prog.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -int main (int argc, char ** argv) { - if (argc != 1+3) { - fprintf(stderr, "uporaba: %s <od> <do> <n>\nprimer: %s 1000 9999 8499\n", argv[0], argv[0]); - return 1; - } - unsigned long long int o = strtoull(argv[1], NULL, 10); - unsigned long long int d = strtoull(argv[2], NULL, 10); - unsigned long long int n = strtoull(argv[3], NULL, 10); - unsigned long long int i = o; - unsigned long long int j = o; - unsigned long long int s = 0; - for (i = o; i <= d; i++) { - fprintf(stderr, "\rpreostane še %llu iteracij", n-i); - s = 0; - for (j = o; j <= d; j++) { - if (j == i) - continue; - s += j; - } - if (n * i == s) - break; - } - fprintf(stdout, "\rče seštejemo vsa števila od %llu do %llu, razen %llu, bo\n" - "vsota vseh %llu, kar je %llu*%llu.\n", o, d, i, s, n, i); - return 0; -} diff --git a/mat/advent/8/vsota b/mat/advent/8/vsota Binary files differdeleted file mode 100755 index 7581730..0000000 --- a/mat/advent/8/vsota +++ /dev/null diff --git a/mat/advent/8/vsota.c b/mat/advent/8/vsota.c deleted file mode 100644 index 50d4ef6..0000000 --- a/mat/advent/8/vsota.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -int main (int argc, char ** argv) { - unsigned long long int a = 0; - unsigned long long int i = 0; - for (i = 1000; i <= 9999; i++) { - a += i; - } - fprintf(stdout, "rezultat vsote je: %llu\n", a); - return 0; -} diff --git a/mat/domace_naloge/7/dokumen.tex b/mat/domace_naloge/7/dokumen.tex deleted file mode 100644 index e69de29..0000000 --- a/mat/domace_naloge/7/dokumen.tex +++ /dev/null |