結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
muuyuum
|
| 提出日時 | 2016-07-10 15:23:40 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 1,000 ms |
| コード長 | 159 bytes |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-10-13 10:15:32 |
| 合計ジャッジ時間 | 1,058 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
s = raw_input()
n_s = [str(i) for i in range(10)]
ans = []
for x in s:
if x in n_s:
ans.append(x)
sum = 0
for x in ans:
sum += int(x)
print sum
muuyuum