We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 972dff8 commit b3e787bCopy full SHA for b3e787b
0x1C-makefiles/100-Makefile
@@ -0,0 +1,20 @@
1
+CC = gcc
2
+SRC = main.c school.c
3
+OBJ = $(SRC:.c=.o)
4
+NAME = school
5
+CFLAGS = -Wall -Werror -Wextra -pedantic
6
+
7
+.PHONY: all clean oclean fclean re
8
9
+all: m.h $(OBJ)
10
+ $(CC) $(OBJ) -o $(NAME)
11
12
+clean:
13
+ $(RM) *~ $(NAME)
14
15
+oclean:
16
+ $(RM) $(OBJ)
17
18
+fclean: clean oclean
19
20
+re: fclean all
0x1C-makefiles/5-main.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python3
+"""
+5-main
+island_perimeter = __import__('5-island_perimeter').island_perimeter
+if __name__ == "__main__":
+ grid = [
+ [0, 0, 0, 0, 0, 0],
+ [0, 1, 0, 0, 0, 0],
+ [0, 1, 1, 1, 0, 0],
+ [0, 0, 0, 0, 0, 0]
+ ]
+ print(island_perimeter(grid))
0 commit comments