結果
| 問題 | No.428 小数から逃げる夢 |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2016-10-02 23:53:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 274 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2026-05-15 18:37:08 |
| 合計ジャッジ時間 | 6,718 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 100 |
ソースコード
import collections
text = input()
len_text = len(text)
dic = collections.defaultdict(int)
for i in range(1,11):
for j in range(len_text-i+1):
dic[text[j:j+i]] += 1
total = 0
m = int(input())
for i in range(m):
c = input()
total += dic[c]
print(total)
matsu7874