Sign in
or
Register
Courses
Textbook
Compiler
Contests
Topics
Courses
C++. Data storage and processing
Word processing
Module:
Word processing
Problem
1
/2
Find 1543
Problem
Find 1543 in the text.
Input
The program receives as input a text containing arbitrarily long lines. The number of lines is unknown.
Output
If it contains the number
1543
, print the word
URA
, if 1543 does not occur in the file, print
NO
.
Examples
#
Input
Output
1
hgdfjgkdghkdjgkgkd1543gjdlgkdjlg
URA
2
1=5 4=3
NO
1000
ms
32 Mb
Rules for program design and list of errors in automatic problem checking
Teacher commentary