diff options
Diffstat (limited to 'inf/rtk/2021-offline')
-rw-r--r-- | inf/rtk/2021-offline/.gitignore | 2 | ||||
-rw-r--r-- | inf/rtk/2021-offline/Makefile | 11 | ||||
-rw-r--r-- | inf/rtk/2021-offline/prog.c | 21 | ||||
-rw-r--r-- | inf/rtk/2021-offline/screenshot.tga | bin | 0 -> 5787648 bytes |
4 files changed, 34 insertions, 0 deletions
diff --git a/inf/rtk/2021-offline/.gitignore b/inf/rtk/2021-offline/.gitignore new file mode 100644 index 0000000..356b6d7 --- /dev/null +++ b/inf/rtk/2021-offline/.gitignore @@ -0,0 +1,2 @@ +pokrajina-unix.in +*.out diff --git a/inf/rtk/2021-offline/Makefile b/inf/rtk/2021-offline/Makefile new file mode 100644 index 0000000..8a3f96f --- /dev/null +++ b/inf/rtk/2021-offline/Makefile @@ -0,0 +1,11 @@ +default: + @echo "offline naloga in rešitev za ijs.rtk. recepti:" + @echo "- make pripravi: prenese datoteke, potrebne za nalogo" + @echo "- make prevedi: naredi program" + @echo "to je vse, hvala." + +pripravi: + wget http://rtk.ijs.si/2021/pokrajina/pokrajina-unix.in -c + +prevedi: + gcc -Wall -pedantic -I. -g -oa.out prog.c diff --git a/inf/rtk/2021-offline/prog.c b/inf/rtk/2021-offline/prog.c new file mode 100644 index 0000000..4415e9d --- /dev/null +++ b/inf/rtk/2021-offline/prog.c @@ -0,0 +1,21 @@ +#include <stdio.h> +#include <stdlib.h> +struct kvader { + size_t x; /* velikosti kvadra */ + size_t y; /* x in y lahko poljubno obračamo */ + size_t z; +} +struct naloga { + size_t w; /* širina zemljevida */ + size_t h; /* višina zemljevida */ + size_t ** v;/* 2D seznam višin, [vrstica][stolpec] */ + size_t k_sizeof; /* število kvadrov */ + struct kvader * k; /* 1D seznam možnih kvadrov */ +} +int vhod (FILE * f, struct * naloga) { + +} +int main (int argc, char ** argv) { + + return 0; +} diff --git a/inf/rtk/2021-offline/screenshot.tga b/inf/rtk/2021-offline/screenshot.tga Binary files differnew file mode 100644 index 0000000..9b6e9e3 --- /dev/null +++ b/inf/rtk/2021-offline/screenshot.tga |