No.637 X: Yet Another FizzBuzz Problem
レベル :
/ AI推定難易度 : 109
/ 実行時間制限 : 1ケース 1.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 558
作問者 :
square1001
/ テスター :
WA_TLE
タグ : / 解いたユーザー数 558
作問者 :
WA_TLE
問題文最終更新日: 2026-06-25 05:55:17
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 181
(順位表)
の他の問題:
Problem Statement
When Dengklek says an integer $N$, your reply is as follows.
- If $N$ is divisible by both $3$ and $5$: "FizzBuzz"
- If $N$ is divisible by $3$ but not by $5$: "Fizz"
- If $N$ is divisible by $5$ but not by $3$: "Buzz"
- If $N$ is divisible by neither $3$ nor $5$: say the integer $N$ as it is
Input
$a_1$ $a_2$ $a_3$ $a_4$ $a_5$
$a_i$ is an integer said by Dengklek and satisfies $1 \le a_i \le 999$.
Output
Output the total number of characters in the words you said. Print a newline at the end.
Sample
Sample 1
Input
1 3 5 7 9
Output
14
Your replies, in order from the first, are "1", "Fizz", "Buzz", "7", "Fizz", so the total is $1+4+4+1+4=14$ characters.
Sample 2
Input
123 45 678 901 234
Output
23
Your replies, in order from the first, are "Fizz", "FizzBuzz", "Fizz", "901", "Fizz", so the total is $4+8+4+3+4=23$ characters.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。