(define yuki2815 (let* ((n (read)) (ax (make-u32vector n))) (dotimes (i n) (u32vector-set! ax i (read))) (let loop-right ((r 0)) (if (and (< (+ r 1) n) (<= (u32vector-ref ax (+ r 1)) (u32vector-ref ax r))) (loop-right (+ r 1)) (let loop-left ((l r)) (if (and (< 0 l) (equal? (u32vector-ref ax r) (u32vector-ref ax (- l 1)))) (loop-left (- l 1)) (print (- (+ r 1) l))))))))