From f889d5ce47bed679369ca5a4e5ba1c19c8d87d4d Mon Sep 17 00:00:00 2001 From: deadsmond <01.lewicki@gmail.com> Date: Mon, 28 Oct 2019 19:36:44 +0100 Subject: [PATCH] hm --- TaskA00/run | 8 +++----- TaskA13/run | 6 ++---- TaskA42/run | 6 ++---- TaskA45/run | 6 ++---- 4 files changed, 9 insertions(+), 17 deletions(-) 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))