結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー pypypymipypypymi
提出日時 2022-03-05 12:51:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 71,540 KB
最終ジャッジ日時 2023-09-26 22:46:03
合計ジャッジ時間 4,333 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,176 KB
testcase_01 AC 75 ms
71,204 KB
testcase_02 AC 75 ms
71,240 KB
testcase_03 AC 75 ms
71,460 KB
testcase_04 AC 74 ms
71,420 KB
testcase_05 AC 75 ms
71,296 KB
testcase_06 AC 75 ms
71,244 KB
testcase_07 AC 74 ms
71,420 KB
testcase_08 AC 74 ms
71,540 KB
testcase_09 AC 75 ms
71,492 KB
testcase_10 AC 74 ms
71,236 KB
testcase_11 AC 75 ms
71,432 KB
testcase_12 AC 75 ms
71,176 KB
testcase_13 AC 74 ms
71,192 KB
testcase_14 AC 74 ms
71,444 KB
testcase_15 AC 74 ms
71,312 KB
testcase_16 AC 74 ms
71,140 KB
testcase_17 AC 75 ms
71,540 KB
testcase_18 AC 75 ms
71,420 KB
testcase_19 AC 72 ms
71,316 KB
testcase_20 AC 73 ms
71,300 KB
testcase_21 AC 73 ms
71,192 KB
testcase_22 AC 74 ms
71,112 KB
testcase_23 AC 73 ms
71,416 KB
testcase_24 AC 73 ms
71,428 KB
testcase_25 AC 73 ms
71,112 KB
testcase_26 AC 74 ms
71,376 KB
testcase_27 AC 73 ms
71,132 KB
testcase_28 AC 74 ms
71,088 KB
testcase_29 AC 75 ms
71,152 KB
testcase_30 AC 76 ms
71,236 KB
testcase_31 AC 74 ms
71,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

an = list(map(int,input().split()))
result = 0
for i in an:
    if i%3==0 and i%5==0:
        result+=8
    elif i%3==0:
        result+=4
    elif i%5==0:
        result+=4
    else:
        result+=len(str(i))
print(result)
        
0