diff --git a/TaskX01/complex.exp b/TaskX01/complex.exp new file mode 100644 index 0000000..60d3b2f --- /dev/null +++ b/TaskX01/complex.exp @@ -0,0 +1 @@ +15 diff --git a/TaskX01/complex.in b/TaskX01/complex.in new file mode 100644 index 0000000..8a1218a --- /dev/null +++ b/TaskX01/complex.in @@ -0,0 +1,5 @@ +1 +2 +3 +4 +5 diff --git a/TaskX01/description.txt b/TaskX01/description.txt new file mode 100644 index 0000000..e76406a --- /dev/null +++ b/TaskX01/description.txt @@ -0,0 +1,6 @@ +Print the sum of integers read from the standard input. +Note: this is just an example of a task (and a solution). +The task has a solution already, do not solve it! + +POINTS: 1 +DEADLINE: 2021-12-08 16:00:00 diff --git a/TaskX01/run.py b/TaskX01/run.py new file mode 100644 index 0000000..f3c0bcc --- /dev/null +++ b/TaskX01/run.py @@ -0,0 +1,7 @@ +import sys + +count = 0 +for line in sys.stdin: + count += int(line) + +print(count) diff --git a/TaskX01/simple.exp b/TaskX01/simple.exp new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/TaskX01/simple.exp @@ -0,0 +1 @@ +4 diff --git a/TaskX01/simple.in b/TaskX01/simple.in new file mode 100644 index 0000000..51993f0 --- /dev/null +++ b/TaskX01/simple.in @@ -0,0 +1,2 @@ +2 +2 diff --git a/TaskX02/description.txt b/TaskX02/description.txt new file mode 100644 index 0000000..2622b90 --- /dev/null +++ b/TaskX02/description.txt @@ -0,0 +1,5 @@ +Print the number lines read from the standard input. + +POINTS: 1 +DEADLINE: 2021-12-08 16:00:00 +REMAINDER 0/2 diff --git a/TaskX02/simple.exp b/TaskX02/simple.exp new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/TaskX02/simple.exp @@ -0,0 +1 @@ +3 diff --git a/TaskX02/simple.in b/TaskX02/simple.in new file mode 100644 index 0000000..036d7a3 --- /dev/null +++ b/TaskX02/simple.in @@ -0,0 +1,3 @@ +raz +dwa +trzy diff --git a/TaskX03/description.txt b/TaskX03/description.txt new file mode 100644 index 0000000..07aa19c --- /dev/null +++ b/TaskX03/description.txt @@ -0,0 +1,6 @@ +For each line read from the standard input print the number of characters +(not counting the end-of-line character), a space and the line read. + +POINTS: 1 +DEADLINE: 2021-12-08 16:00:00 +REMAINDER 1/2 diff --git a/TaskX03/simple.exp b/TaskX03/simple.exp new file mode 100644 index 0000000..fd1d062 --- /dev/null +++ b/TaskX03/simple.exp @@ -0,0 +1,4 @@ +9 Szeregowy +4 Rico +8 Kowalski +7 Skipper diff --git a/TaskX03/simple.in b/TaskX03/simple.in new file mode 100644 index 0000000..8750bae --- /dev/null +++ b/TaskX03/simple.in @@ -0,0 +1,4 @@ +Szeregowy +Rico +Kowalski +Skipper