結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー RyutoRyuto
提出日時 2018-01-30 16:08:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 240 bytes
コンパイル時間 1,111 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 71,432 KB
最終ジャッジ日時 2023-09-11 04:23:38
合計ジャッジ時間 4,372 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,344 KB
testcase_01 AC 77 ms
71,008 KB
testcase_02 AC 77 ms
71,104 KB
testcase_03 AC 77 ms
70,952 KB
testcase_04 AC 77 ms
71,312 KB
testcase_05 AC 76 ms
71,268 KB
testcase_06 AC 77 ms
71,392 KB
testcase_07 AC 75 ms
71,264 KB
testcase_08 AC 77 ms
70,952 KB
testcase_09 AC 76 ms
71,332 KB
testcase_10 AC 77 ms
71,372 KB
testcase_11 AC 77 ms
71,152 KB
testcase_12 AC 76 ms
70,940 KB
testcase_13 AC 76 ms
70,888 KB
testcase_14 AC 76 ms
70,940 KB
testcase_15 AC 77 ms
71,224 KB
testcase_16 AC 77 ms
71,248 KB
testcase_17 AC 78 ms
71,392 KB
testcase_18 AC 77 ms
71,384 KB
testcase_19 AC 77 ms
71,304 KB
testcase_20 AC 77 ms
71,260 KB
testcase_21 AC 78 ms
71,328 KB
testcase_22 AC 77 ms
71,384 KB
testcase_23 AC 76 ms
71,264 KB
testcase_24 AC 78 ms
71,432 KB
testcase_25 AC 78 ms
71,428 KB
testcase_26 AC 77 ms
71,192 KB
testcase_27 AC 76 ms
71,196 KB
testcase_28 AC 77 ms
71,196 KB
testcase_29 AC 77 ms
71,240 KB
testcase_30 AC 78 ms
71,212 KB
testcase_31 AC 77 ms
71,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

nums = [int(x) for x in input().split()]
ans = 0

for num in nums:
    sw = 0
    if num % 5 == 0:
        ans += 4
        sw = 1
    if num % 3 == 0:
        ans += 4
        sw = 1
    if sw == 0:
        ans += len(str(num))
print(ans)
0