結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
杉山新
|
| 提出日時 | 2020-06-16 10:55:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-03 11:48:33 |
| 合計ジャッジ時間 | 1,524 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
杉山新