頁面無法載入?點擊這裡可能會修復。
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

需要登入才能撰寫程式碼。