#include <stdio.h>
int main(void) {
    double time[]= {
        0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9,
        1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9,
        2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9,
        3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9,
        4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9
    };
    double figure[]={
        2.353917, 2.359012, 2.359012, 2.353917, 2.351370,
        2.366655, 2.366655, 2.359012, 2.366655, 2.364107,
        2.366655, 2.364107, 2.359012, 2.356465, 2.351370,
        2.359012, 2.356465, 2.356465, 2.364107, 2.348822,
        2.356465, 2.356465, 2.346275, 2.348822, 2.343727,
        2.353917, 2.353917, 2.356465, 2.353917, 2.356465,
        2.361560, 2.359012, 2.364107, 2.351370, 2.369202,
        2.473652, 2.888901, 3.334720, 3.566546, 3.665901,
        3.660805, 3.696471, 3.686281, 3.579284, 3.281222,
        2.720763, 2.471104, 2.420153, 2.412511, 2.404868
    };
    int n=50;
    int max=0;
    for(int i=1;i<n;i++){
        if (figure[i]>figure[max]){
            max=i;
        }
    }
    printf("ピーク時の\n");
    printf("時間  : %.1f 秒\n", time[max]);
    printf("電位  : %.6f V\n", figure[max]);
    return 0;
}