結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
杉山新
|
| 提出日時 | 2020-06-16 10:55:14 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 21,664 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2026-08-04 22:14:48 |
| 合計ジャッジ時間 | 4,096 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 2 |
ソースコード
S = input()
total = 0
for i in S:
if i.isdigit():
total+=int(i)
else:
continue
if total:
print(total)
else:
print(-1)
杉山新