diff --git a/TaskA00/run b/TaskA00/run index d5656a8..3223c3c 100644 --- a/TaskA00/run +++ b/TaskA00/run @@ -1,5 +1,5 @@ #!/usr/bin/python3 - +import sys import re def is_number(test): @@ -11,7 +11,5 @@ def is_number(test): else: return "no" -x = input() -while x: - print(is_number(x)) - x = input() +for line in sys.stdin: + print(is_number(line)) diff --git a/TaskA13/run b/TaskA13/run index 5b43a0d..cb2812a 100644 --- a/TaskA13/run +++ b/TaskA13/run @@ -30,7 +30,5 @@ def is_number(text): else: return "no" -x = input() -while x: - print(is_number(x)) - x = input() +for line in sys.stdin: + print(is_number(line)) diff --git a/TaskA42/run b/TaskA42/run index 6d77c18..193d934 100644 --- a/TaskA42/run +++ b/TaskA42/run @@ -11,7 +11,5 @@ def is_number(test): else: return "no" -x = input() -while x: - print(is_number(x)) - x = input() +for line in sys.stdin: + print(is_number(line)) diff --git a/TaskA45/run b/TaskA45/run index 247ff3a..ca880ff 100644 --- a/TaskA45/run +++ b/TaskA45/run @@ -11,7 +11,5 @@ def is_number(test): else: return "no" -x = input() -while x: - print(is_number(x)) - x = input() +for line in sys.stdin: + print(is_number(line))