結果

問題 No.289 数字を全て足そう
ユーザー excnct
提出日時 2024-12-14 03:35:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-14 03:35:52
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 2 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    s = input()
    num_s = []
    list_s = list(str(s))
    for i in range(len(list_s)):
        if type(list_s[i]) is int:
            num_s.append(int(list_s[i]))

    sum = 0
    for j in range(len(num_s)):
        sum += num_s[j]
    print(sum)


if __name__ == "__main__":
    main()
0