IOM 2018, Блиц, английски — Задача 20

OLYMPIAD OF METROPOLISES. Moscow, September 3 · 3 септември 2018 г.

Условие

How many times does the string "Divisible by 100!" appear?

C program listing with line numbers 1 to 11: include stdio.h; in main, an unsigned int count is set to 0; a for loop runs i from 0 to 5000 inclusive, sets count = i % 256 and prints 'Divisible by 100!' when count % 100 == 0; main returns 0.

Отговори

Решение


Оригинал в Архива: blitz.pdf · официални решения: blitz-answers.pdf