結果
問題 |
No.289 数字を全て足そう
|
ユーザー |
![]() |
提出日時 | 2017-06-12 16:09:44 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 16 ms / 1,000 ms |
コード長 | 123 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 16:45:25 |
合計ジャッジ時間 | 1,180 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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