結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 01:06:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,000 ms |
| コード長 | 108 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 69,652 KB |
| 最終ジャッジ日時 | 2024-12-15 23:57:52 |
| 合計ジャッジ時間 | 2,900 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import re
s = str(input())
num_str = re.sub("\\D", "", s)
ans = sum([int(i) for i in num_str])
print(ans)