結果
問題 | No.289 数字を全て足そう |
ユーザー |
|
提出日時 | 2020-08-29 17:01:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-14 14:15:46 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
s = input()#文字列s l = list(s)#sをリスト化 #関数:文字列が数字なら正 def int_pick(x): if x.isdigit() == True: return x #filter関数でリストから数字を抽出 suji_list = filter(int_pick, l) #数字を整数型に変換 suji_list_i = [int(s) for s in suji_list] print(sum(suji_list_i))