АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

41. Divisibility

Time Limit: 1 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added debug

Даны два натуральных числа a и b. Проверьте, делится ли первое из них на второе.

Input

В первой строке записано число a, состоящее не более чем из 10000 цифр. Во второй строке записано число b, не превышающее 1000.

Output

Слово YES, если первое число делится на второе, и NO - если нет.

Samples

InputOutput
15
5
YES
15
8
NO

View Problem Statistics Submit Problem discussion Author/source:
Sorted Problems / Mathematics / Theory of numbers /
470. Divide into pairs 41. 1650. Divisors-2 880. Doubling and increment 15. Factorials
Problems from Contests and Camps / Trainings of Vologda SU / Training 28.10.2010 /
897. A - Euclid's algorithm 41. 470. C - Divide into pairs 99. D - Joke
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse - 2019 / Number Theory /
41. 179. 02 - Great Triangle Area 36. 03 - Closest fraction 1650. 04 - Divisors-2
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse, september 2020 / Impulse-2020, number theory /
41. 179. 02 - Great Triangle Area 36. 03 - Closest fraction 1650. 04 - Divisors-2
time generating 0.093 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.