結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-16 05:57:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 1,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 399 ms |
| コンパイル使用メモリ | 82,440 KB |
| 実行使用メモリ | 63,920 KB |
| 最終ジャッジ日時 | 2024-12-18 00:23:45 |
| 合計ジャッジ時間 | 2,284 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
S = list(input())[:-1]
nums = [str(i) for i in range(10)]
ans = 0
for s in S:
if s in nums:
ans += int(s)
print(ans)