Minggu, 01 Januari 2017

UVA 12405 - Scarecrow Solution

Problem Statement: Scarecrow

Explanation

Iterate through every character in the given string. Everytime you find dot character (.), increment the answer by 1 and increment the iterator by 3 (because every scarecrow can cover 3 space).

Source Code

Tidak ada komentar:

Posting Komentar