結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-12 16:09:44 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 1,000 ms |
| コード長 | 123 bytes |
| 記録 | |
| コンパイル時間 | 415 ms |
| コンパイル使用メモリ | 77,136 KB |
| 最終ジャッジ日時 | 2025-12-04 00:03:56 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
s = raw_input()
t = 0
for c in s:
if ord('0') <= ord(c) and ord(c) <= ord('9'):
t += ord(c) - ord('0')
print t
JunOnuma