結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー mlihua09mlihua09
提出日時 2020-08-27 23:24:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 283 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 53,920 KB
最終ジャッジ日時 2024-04-26 06:20:24
合計ジャッジ時間 2,870 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,036 KB
testcase_01 AC 39 ms
52,400 KB
testcase_02 AC 37 ms
52,852 KB
testcase_03 AC 38 ms
52,244 KB
testcase_04 AC 38 ms
52,560 KB
testcase_05 AC 39 ms
53,260 KB
testcase_06 AC 39 ms
52,364 KB
testcase_07 AC 38 ms
52,656 KB
testcase_08 AC 41 ms
52,268 KB
testcase_09 AC 40 ms
52,888 KB
testcase_10 AC 39 ms
52,992 KB
testcase_11 AC 38 ms
53,920 KB
testcase_12 AC 39 ms
53,232 KB
testcase_13 AC 40 ms
52,648 KB
testcase_14 AC 39 ms
52,944 KB
testcase_15 AC 37 ms
52,616 KB
testcase_16 AC 38 ms
53,228 KB
testcase_17 AC 37 ms
51,812 KB
testcase_18 AC 38 ms
52,336 KB
testcase_19 AC 38 ms
53,280 KB
testcase_20 AC 37 ms
52,564 KB
testcase_21 AC 39 ms
53,300 KB
testcase_22 AC 36 ms
53,164 KB
testcase_23 AC 38 ms
52,772 KB
testcase_24 AC 38 ms
52,428 KB
testcase_25 AC 37 ms
53,140 KB
testcase_26 AC 38 ms
52,240 KB
testcase_27 AC 38 ms
52,108 KB
testcase_28 AC 37 ms
52,816 KB
testcase_29 AC 38 ms
52,600 KB
testcase_30 AC 38 ms
52,484 KB
testcase_31 AC 38 ms
51,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = 0

for a in map(int, input().split()):
    
    if a % 15 == 0:
        
        ans += 8
        
    elif a % 3 == 0:
        
        ans += 4
        
    elif a % 5 == 0:
        
        ans += 4
        
    else:
        
        ans += len(str(a))
        
print(ans)
0