АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1037. A63

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Даны неотрицательное целое число a, положительное целое b и числа r и s.

Определить, верно ли, что при делении a на b получается остаток, равный одному из двух чисел r или s.

Input

Четыре числа a, b, r, s разделенные пробелами и/или переводами строк

Output

Если остаток от деления равен одному из чисел r или s, выводим TRUE, иначе выводим FALSE

Sample

InputOutput
Пример 1. Вход:
5 2 1 3
Пример 1. Выход:
TRUE

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
979. A61 1037. 957. A67g 986. A68b 1025. A74
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.094 sec.
© Copyright VSTU, AVT, Nosov D.A.