summaryrefslogtreecommitdiffstats
path: root/mat/advent
diff options
context:
space:
mode:
Diffstat (limited to 'mat/advent')
-rwxr-xr-xmat/advent/8/a.outbin7332 -> 0 bytes
-rw-r--r--mat/advent/8/prog.c24
2 files changed, 0 insertions, 24 deletions
diff --git a/mat/advent/8/a.out b/mat/advent/8/a.out
deleted file mode 100755
index 64905aa..0000000
--- a/mat/advent/8/a.out
+++ /dev/null
Binary files differ
diff --git a/mat/advent/8/prog.c b/mat/advent/8/prog.c
deleted file mode 100644
index 7597ae6..0000000
--- a/mat/advent/8/prog.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-int main (int argc, char ** argv) {
- char x[69] = "";
- int vsebuje = 0;
- int j = 0;
- int z = 0;
- for (int i = 1; i <= 2021; i++) {
- sprintf(x, "%d", i);
- vsebuje = 0;
- for (j = 0; j <= 1234; j++) {
- if (x[j] == '1') {
- vsebuje = 1;
- }
- if (x[j] == '\0') {
- break;
- }
- }
- if (vsebuje == 0) {
- z++;
- }
- }
- fprintf(stdout, "%d \n", z);
-}