ページが読み込まれませんか? こちらをクリックすると直るかもしれません。
Placeholder

#3877

Secret Code 1s 128MB

問題


入力

* Line 1: A single encrypted string of length at most 100.


出力

* Line 1: The number of ways FJ could have produced this string with one or more successive operations applied to some initial string of length at least 2, written out modulo 2014. If there are no such ways, output zero.


例題

ABABA 
8 

出典

USACO 2014 February Silver

ログインしないとコードを書けません。