結果

問題 No.852 連続部分文字列
ユーザー tempura_pptempura_pp
提出日時 2019-03-29 16:41:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 632 ms / 3,153 ms
コード長 185 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,800 KB
最終ジャッジ日時 2024-04-24 16:38:06
合計ジャッジ時間 9,188 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,328 KB
testcase_01 AC 40 ms
51,840 KB
testcase_02 AC 45 ms
51,840 KB
testcase_03 AC 40 ms
51,968 KB
testcase_04 AC 41 ms
52,096 KB
testcase_05 AC 46 ms
57,728 KB
testcase_06 AC 46 ms
57,600 KB
testcase_07 AC 45 ms
57,856 KB
testcase_08 AC 42 ms
51,968 KB
testcase_09 AC 40 ms
51,840 KB
testcase_10 AC 45 ms
57,344 KB
testcase_11 AC 41 ms
51,840 KB
testcase_12 AC 46 ms
57,728 KB
testcase_13 AC 69 ms
75,136 KB
testcase_14 AC 60 ms
71,168 KB
testcase_15 AC 73 ms
75,136 KB
testcase_16 AC 68 ms
75,008 KB
testcase_17 AC 71 ms
75,392 KB
testcase_18 AC 72 ms
74,880 KB
testcase_19 AC 52 ms
61,568 KB
testcase_20 AC 67 ms
74,880 KB
testcase_21 AC 73 ms
74,624 KB
testcase_22 AC 70 ms
75,008 KB
testcase_23 AC 69 ms
75,136 KB
testcase_24 AC 68 ms
75,136 KB
testcase_25 AC 69 ms
75,008 KB
testcase_26 AC 73 ms
75,264 KB
testcase_27 AC 69 ms
75,008 KB
testcase_28 AC 72 ms
74,624 KB
testcase_29 AC 74 ms
75,264 KB
testcase_30 AC 57 ms
67,200 KB
testcase_31 AC 76 ms
75,264 KB
testcase_32 AC 82 ms
74,880 KB
testcase_33 AC 426 ms
76,800 KB
testcase_34 AC 426 ms
76,416 KB
testcase_35 AC 424 ms
76,800 KB
testcase_36 AC 426 ms
76,544 KB
testcase_37 AC 423 ms
76,416 KB
testcase_38 AC 421 ms
76,416 KB
testcase_39 AC 620 ms
76,800 KB
testcase_40 AC 437 ms
76,672 KB
testcase_41 AC 430 ms
76,800 KB
testcase_42 AC 632 ms
76,800 KB
testcase_43 AC 439 ms
76,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
N=len(S)
sum=13*N*(N+1)
for c in range(ord('a'),ord('z')+1):
    cnt=0
    for i in S:
        if i==chr(c) : cnt=0
        else : cnt+=1
        sum-=cnt
print(2*sum/N/(N+1))
0