fix Makefile and README.md for 2004/kopczynski
This commit is contained in:
1 parent
f4449fbe07
commit
49630a3dc0
2 files changed
+16
-4
No files matched your search
@@ -102,7 +102,7 @@ CINCLUDE=
|
|||||||
#CINCLUDE= -include stdlib.h
|
#CINCLUDE= -include stdlib.h
|
||||||
#CINCLUDE= -include stdio.h
|
#CINCLUDE= -include stdio.h
|
||||||
#CINCLUDE= -include stdlib.h -include stdio.h
|
#CINCLUDE= -include stdlib.h -include stdio.h
|
||||||
#CINCLUDE= -I ${X11_INCDIR}
|
#CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11
|
||||||
#CINCLUDE= `${SDL2_CONFIG} --cflags`
|
#CINCLUDE= `${SDL2_CONFIG} --cflags`
|
||||||
|
|
||||||
# Optimization
|
# Optimization
|
||||||
|
|||||||
@@ -8,32 +8,44 @@
|
|||||||
|
|
||||||
http://www.mimuw.edu.pl/~erykk/
|
http://www.mimuw.edu.pl/~erykk/
|
||||||
|
|
||||||
## To build:
|
# To build:
|
||||||
|
|
||||||
make all
|
```sh
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
### To run
|
### To run:
|
||||||
|
|
||||||
|
```sh
|
||||||
./kopczynski < input_file
|
./kopczynski < input_file
|
||||||
|
```
|
||||||
|
|
||||||
### Try:
|
### Try:
|
||||||
|
|
||||||
|
```sh
|
||||||
./kopczynski < kopczynski-8a
|
./kopczynski < kopczynski-8a
|
||||||
./kopczynski < kopczynski-8b
|
./kopczynski < kopczynski-8b
|
||||||
./kopczynski < kopczynski-8c
|
./kopczynski < kopczynski-8c
|
||||||
./kopczynski < kopczynski-9
|
./kopczynski < kopczynski-9
|
||||||
./kopczynski < kopczynski-10
|
./kopczynski < kopczynski-10
|
||||||
./kopczynski < kopczynski-11
|
./kopczynski < kopczynski-11
|
||||||
|
```
|
||||||
|
|
||||||
### Alternate code
|
### Alternate code
|
||||||
|
|
||||||
The judges modified the program to print its result. The original
|
The judges modified the program to print its result. The original
|
||||||
program returned the result as an exit code:
|
program returned the result as an exit code:
|
||||||
|
|
||||||
|
```sh
|
||||||
make alt
|
make alt
|
||||||
|
```
|
||||||
|
|
||||||
|
Then try:
|
||||||
|
|
||||||
|
```sh
|
||||||
./kopczynski.alt < kopczynski-10
|
./kopczynski.alt < kopczynski-10
|
||||||
echo $?
|
echo $?
|
||||||
|
```
|
||||||
|
|
||||||
## Judges' comments
|
## Judges' comments
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user