АВТ
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.

1818. Quantity of Triples

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

Дано целое число N. Найти, сколько раз встречается цифра 3 в записи числа N3.

Input

Одно целое число N (-1000 ≤ N ≤ 1000)

Output

Одно целое число - ответ.

Sample

InputOutput
7
2

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML for 7 Form, cycles /
707. 10 - Длинный НОД 1818. 1819. 12 - Maximum of triples 1820. 13 - Unique numbers 1821. 14 - Prime or not prime?
time generating 0.375 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.