結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
しーある
|
| 提出日時 | 2018-12-20 00:50:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 1,000 ms |
| コード長 | 54 bytes |
| 記録 | |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-04-12 12:51:50 |
| 合計ジャッジ時間 | 4,047 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
Main.py:2: SyntaxWarning: "\D" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\D"? A raw string is also an option.
print(sum(map(int,re.sub('\D','',input()))))
ソースコード
import re
print(sum(map(int,re.sub('\D','',input()))))
しーある