結果
問題 | No.1159 Sashiming String |
ユーザー | matrie |
提出日時 | 2020-12-25 01:43:00 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 11,792 KB |
実行使用メモリ | 16,852 KB |
最終ジャッジ日時 | 2023-10-21 16:08:19 |
合計ジャッジ時間 | 5,147 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
10,088 KB |
testcase_01 | AC | 29 ms
10,088 KB |
testcase_02 | AC | 137 ms
11,012 KB |
testcase_03 | AC | 157 ms
12,324 KB |
testcase_04 | AC | 122 ms
11,100 KB |
testcase_05 | AC | 396 ms
12,008 KB |
testcase_06 | AC | 121 ms
11,108 KB |
testcase_07 | AC | 198 ms
11,404 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
ソースコード
import re s=input() s=re.sub(r'S','0',s) s=re.sub(r'ing','1',s) s=re.sub(r'[a-zA-Z]','',s) l=list(map(int,list(s))) c=0 for i in range(len(l)): if l[i]<1: c+=sum(l[i+1:]) print(c)