fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. double time[200];
  5. double Volt[200];
  6. int l;
  7. for(l=0;l<200;l++)
  8. {
  9. scanf("%lf,%lf",&time[l],&Volt[l]);
  10. }
  11. for(l=1;l<199;l++)
  12. {
  13. if(Volt[l]>Volt[l-1] && Volt[l]>Volt[l+1])
  14. {
  15. printf("時間:%lf 電位:%lf\n",time[l],Volt[l]);
  16. }
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 5308KB
stdin
0.000000,2.453046
0.100000,2.458148
0.200000,2.458148
0.300000,2.458148
0.400000,2.458148
0.500000,2.458148
0.600000,2.458148
0.700000,2.463249
0.800000,2.458148
0.900000,2.458148
1.000000,2.450495
1.100000,2.458148
1.200000,2.450495
1.300000,2.455597
1.400000,2.458148
1.500000,2.453046
1.600000,2.455597
1.700000,2.450495
1.800000,2.450495
1.900000,2.463249
2.000000,2.455597
2.100000,2.450495
2.200000,2.453046
2.300000,2.455597
2.400000,2.450495
2.500000,2.450495
2.600000,2.458148
2.700000,2.458148
2.800000,2.450495
2.900000,2.455597
3.000000,2.455597
3.100000,2.450495
3.200000,2.458148
3.300000,2.458148
3.400000,2.458148
3.500000,2.463249
3.600000,2.463249
3.700000,2.458148
3.800000,2.455597
3.900000,2.450495
4.000000,2.463249
4.100000,2.455597
4.200000,2.450495
4.300000,2.455597
4.400000,2.450495
4.500000,2.463249
4.600000,2.463249
4.700000,2.458148
4.800000,2.455597
4.900000,2.455597
5.000000,2.458148
5.100000,2.447944
5.200000,2.463249
5.300000,2.455597
5.400000,2.465800
5.500000,2.455597
5.600000,2.463249
5.700000,2.450495
5.800000,2.458148
5.900000,2.455597
6.000000,2.463249
6.100000,2.465800
6.200000,2.455597
6.300000,2.458148
6.400000,2.458148
6.500000,2.460699
6.600000,2.458148
6.700000,2.458148
6.800000,2.450495
6.900000,2.463249
7.000000,2.458148
7.100000,2.463249
7.200000,2.463249
7.300000,2.455597
7.400000,2.458148
7.500000,2.463249
7.600000,2.450495
7.700000,2.455597
7.800000,2.450495
7.900000,2.455597
8.000000,2.458148
8.100000,2.450495
8.200000,2.455597
8.300000,2.458148
8.400000,2.450495
8.500000,2.450495
8.600000,2.455597
8.700000,2.450495
8.800000,2.463249
8.900000,2.458148
9.000000,2.453046
9.100000,2.458148
9.200000,2.455597
9.300000,2.450495
9.400000,2.450495
9.500000,2.455597
9.600000,2.450495
9.700000,2.450495
9.800000,2.450495
9.900000,2.447944
10.000000,2.458148
10.100000,2.463249
10.200000,2.455597
10.300000,2.450495
10.400000,2.463249
10.500000,2.455597
10.600000,2.450495
10.700000,2.455597
10.800000,2.455597
10.900000,2.463249
11.000000,2.463249
11.100000,2.455597
11.200000,2.458148
11.300000,2.453046
11.400000,2.450495
11.500000,2.460699
11.600000,2.450495
11.700000,2.450495
11.800000,2.455597
11.900000,2.458148
12.000000,2.450495
12.100000,2.450495
12.200000,2.450495
12.300000,2.455597
12.400000,2.463249
12.500000,2.455597
12.600000,2.455597
12.700000,2.450495
12.800000,2.450495
12.900000,2.465800
13.000000,2.455597
13.100000,2.455597
13.200000,2.463249
13.300000,2.450495
13.400000,2.450495
13.500000,2.458148
13.600000,2.455597
13.700000,2.460699
13.800000,2.463249
13.900000,2.455597
14.000000,2.453046
14.100000,2.463249
14.200000,2.460699
14.300000,2.458148
14.400000,2.450495
14.500000,2.455597
14.600000,2.460699
14.700000,2.455597
14.800000,2.458148
14.900000,2.455597
15.000000,2.455597
15.100000,2.455597
15.200000,2.450495
15.300000,2.455597
15.400000,2.463249
15.500000,2.455597
15.600000,2.458148
15.700000,2.450495
15.800000,2.455597
15.900000,2.460699
16.000000,2.460699
16.100000,2.450495
16.200000,2.463249
16.300000,2.460699
16.400000,2.450495
16.500000,2.455597
16.600000,2.450495
16.700000,2.455597
16.800000,2.458148
16.900000,2.455597
17.000000,2.463249
17.100000,2.455597
17.200000,2.455597
17.300000,2.455597
17.400000,2.458148
17.500000,2.455597
17.600000,2.450495
17.700000,2.450495
17.800000,2.450495
17.900000,2.450495
18.000000,2.458148
18.100000,2.460699
18.200000,2.455597
18.300000,2.455597
18.400000,2.450495
18.500000,2.450495
18.600000,2.450495
18.700000,2.455597
18.800000,2.458148
18.900000,2.458148
19.000000,2.463249
19.100000,2.450495
19.200000,2.458148
19.300000,2.458148
19.400000,2.458148
19.500000,2.450495
19.600000,2.453046
19.700000,2.455597
19.800000,2.450495
19.900000,2.463249
20.000000,2.450495
20.100000,2.450495
20.200000,2.455597
20.300000,2.450495
20.400000,2.450495
20.500000,2.455597
20.600000,2.458148
20.700000,2.455597
20.800000,2.455597
20.900000,2.450495
21.000000,2.455597
21.100000,2.450495
21.200000,2.450495
21.300000,2.455597
21.400000,2.463249
21.500000,2.458148
21.600000,2.455597
21.700000,2.460699
21.800000,2.463249
21.900000,2.450495
22.000000,2.458148
22.100000,2.458148
22.200000,2.450495
22.300000,2.455597
22.400000,2.450495
22.500000,2.453046
22.600000,2.453046
22.700000,2.455597
22.800000,2.473453
22.900000,2.465800
23.000000,2.470902
23.100000,2.473453
23.200000,2.509165
23.300000,3.098410
23.400000,3.511648
23.500000,3.172385
23.600000,2.777004
23.700000,2.649461
23.800000,3.151978
23.900000,4.083037
24.000000,3.733571
24.100000,3.098410
24.200000,2.674970
24.300000,2.825470
24.400000,3.774385
24.500000,3.521851
24.600000,3.006580
24.700000,2.662215
24.800000,2.731088
24.900000,3.547359
25.000000,3.389207
25.100000,2.975970
25.200000,2.751495
25.300000,2.761698
25.400000,3.503995
25.500000,3.532054
25.600000,3.174936
25.700000,2.759148
25.800000,2.662215
25.900000,3.009131
26.000000,3.470834
26.100000,3.320334
26.200000,2.856080
26.300000,2.764249
26.400000,3.243809
26.500000,3.804995
26.600000,3.271868
26.700000,2.794860
26.800000,2.629054
26.900000,2.623953
27.000000,2.570385
27.100000,2.514266
27.200000,2.516817
27.300000,2.514266
27.400000,2.514266
27.500000,2.547427
27.600000,2.491309
27.700000,2.481105
27.800000,2.476004
27.900000,2.465800
28.000000,2.476004
28.100000,2.473453
28.200000,2.473453
28.300000,2.473453
28.400000,2.468351
28.500000,2.465800
28.600000,2.465800
28.700000,2.486207
28.800000,2.481105
28.900000,2.486207
29.000000,2.501512
29.100000,2.580588
29.200000,2.917300
29.300000,2.886690
29.400000,2.764249
29.500000,2.771902
29.600000,3.738673
29.700000,3.424919
29.800000,3.144326
29.900000,3.118817
30.000000,3.664698
30.100000,3.384105
30.200000,3.113715
30.300000,3.350944
30.400000,3.677453
30.500000,3.340741
30.600000,3.078004
30.700000,3.853461
30.800000,3.628987
30.900000,3.154529
31.000000,3.493792
31.100000,3.409614
31.200000,3.284622
31.300000,3.853461
31.400000,3.111165
31.500000,3.113715
31.600000,3.649393
31.700000,3.182588
31.800000,3.154529
31.900000,3.644292
32.000000,3.435122
32.100000,3.167283
32.200000,3.037190
32.300000,2.930054
32.400000,2.784656
32.500000,2.613749
32.600000,2.478554
32.700000,2.488758
32.800000,2.476004
32.900000,2.470902
33.000000,2.470902
33.100000,2.481105
33.200000,2.470902
33.300000,2.473453
33.400000,2.468351
33.500000,2.465800
33.600000,2.473453
33.700000,2.470902
33.800000,2.476004
33.900000,2.470902
34.000000,2.476004
34.100000,2.470902
34.200000,2.473453
34.300000,2.468351
34.400000,2.460699
34.500000,2.463249
34.600000,2.468351
34.700000,2.476004
34.800000,2.468351
34.900000,2.468351
35.000000,2.473453
35.100000,2.468351
35.200000,2.468351
35.300000,2.460699
35.400000,2.468351
35.500000,2.473453
35.600000,2.465800
35.700000,2.463249
35.800000,2.460699
35.900000,2.460699
36.000000,2.470902
36.100000,2.465800
36.200000,2.470902
36.300000,2.460699
36.400000,2.465800
36.500000,2.460699
36.600000,2.460699
36.700000,2.460699
36.800000,2.465800
36.900000,2.470902
37.000000,2.460699
37.100000,2.465800
37.200000,2.470902
37.300000,2.463249
37.400000,2.465800
37.500000,2.460699
37.600000,2.465800
37.700000,2.458148
37.800000,2.465800
37.900000,2.455597
38.000000,2.468351
38.100000,2.458148
38.200000,2.465800
38.300000,2.463249
38.400000,2.458148
38.500000,2.465800
38.600000,2.458148
38.700000,2.458148
38.800000,2.465800
38.900000,2.463249
39.000000,2.460699
39.100000,2.463249
39.200000,2.460699
39.300000,2.468351
39.400000,2.463249
39.500000,2.460699
39.600000,2.470902
39.700000,2.455597
39.800000,2.463249
39.900000,2.460699
40.000000,2.460699
40.100000,2.460699
40.200000,2.463249
40.300000,2.460699
40.400000,2.460699
40.500000,2.470902
40.600000,2.455597
40.700000,2.460699
40.800000,2.465800
40.900000,2.468351
41.000000,2.470902
41.100000,2.460699
41.200000,2.463249
41.300000,2.460699
41.400000,2.463249
41.500000,2.463249
41.600000,2.468351
41.700000,2.470902
41.800000,2.455597
41.900000,2.455597
42.000000,2.460699
42.100000,2.453046
42.200000,2.460699
42.300000,2.455597
42.400000,2.458148
42.500000,2.468351
42.600000,2.460699
42.700000,2.460699
42.800000,2.455597
42.900000,2.460699
43.000000,2.453046
43.100000,2.453046
43.200000,2.463249
43.300000,2.468351
43.400000,2.458148
43.500000,2.460699
43.600000,2.460699
43.700000,2.468351
43.800000,2.468351
43.900000,2.453046
44.000000,2.460699
44.100000,2.453046
44.200000,2.455597
44.300000,2.455597
44.400000,2.460699
44.500000,2.460699
44.600000,2.468351
44.700000,2.455597
44.800000,2.460699
44.900000,2.460699
45.000000,2.460699
45.100000,2.465800
45.200000,2.460699
45.300000,2.455597
45.400000,2.460699
45.500000,2.468351
45.600000,2.460699
45.700000,2.468351
45.800000,2.455597
45.900000,2.458148
46.000000,2.463249
46.100000,2.468351
46.200000,2.465800
46.300000,2.460699
46.400000,2.460699
46.500000,2.460699
46.600000,2.460699
46.700000,2.460699
46.800000,2.460699
46.900000,2.453046
47.000000,2.460699
47.100000,2.455597
47.200000,2.455597
47.300000,2.453046
47.400000,2.455597
47.500000,2.453046
47.600000,2.460699
47.700000,2.465800
47.800000,2.460699
47.900000,2.458148
48.000000,2.460699
48.100000,2.460699
48.200000,2.465800
48.300000,2.458148
48.400000,2.450495
48.500000,2.460699
48.600000,2.465800
48.700000,2.465800
48.800000,2.460699
48.900000,2.460699
49.000000,2.468351
49.100000,2.458148
49.200000,2.458148
49.300000,2.450495
49.400000,2.460699
49.500000,2.458148
49.600000,2.465800
49.700000,2.458148
49.800000,2.453046
49.900000,2.458148
50.000000,2.453046
50.100000,2.460699
50.200000,2.465800
50.300000,2.458148
50.400000,2.453046
50.500000,2.453046
50.600000,2.460699
50.700000,2.458148
50.800000,2.460699
50.900000,2.465800
51.000000,2.458148
51.100000,2.463249
51.200000,2.458148
51.300000,2.453046
51.400000,2.458148
51.500000,2.465800
51.600000,2.460699
51.700000,2.458148
51.800000,2.460699
51.900000,2.460699
52.000000,2.453046
52.100000,2.458148
52.200000,2.465800
52.300000,2.453046
52.400000,2.465800
52.500000,2.455597
52.600000,2.453046
52.700000,2.468351
52.800000,2.453046
52.900000,2.463249
53.000000,2.465800
53.100000,2.458148
53.200000,2.453046
53.300000,2.450495
53.400000,2.453046
53.500000,2.458148
53.600000,2.463249
53.700000,2.455597
53.800000,2.453046
53.900000,2.465800
54.000000,2.453046
54.100000,2.460699
54.200000,2.465800
54.300000,2.453046
54.400000,2.455597
54.500000,2.458148
54.600000,2.465800
54.700000,2.458148
54.800000,2.453046
54.900000,2.453046
55.000000,2.460699
55.100000,2.458148
55.200000,2.463249
55.300000,2.460699
55.400000,2.460699
55.500000,2.453046
55.600000,2.453046
55.700000,2.458148
55.800000,2.458148
55.900000,2.463249
56.000000,2.458148
56.100000,2.455597
56.200000,2.458148
56.300000,2.458148
56.400000,2.465800
56.500000,2.465800
56.600000,2.465800
56.700000,2.460699
56.800000,2.460699
56.900000,2.460699
57.000000,2.463249
57.100000,2.458148
57.200000,2.460699
57.300000,2.463249
57.400000,2.453046
57.500000,2.450495
57.600000,2.465800
57.700000,2.458148
57.800000,2.460699
57.900000,2.450495
58.000000,2.458148
58.100000,2.458148
58.200000,2.458148
58.300000,2.463249
58.400000,2.450495
58.500000,2.453046
58.600000,2.465800
58.700000,2.465800
58.800000,2.450495
58.900000,2.458148
59.000000,2.455597
59.100000,2.458148
59.200000,2.458148
59.300000,2.453046
59.400000,2.463249
59.500000,2.455597
59.600000,2.463249
59.700000,2.458148
59.800000,2.453046
59.900000,2.450495
60.000000,2.463249
60.100000,2.453046
60.200000,2.463249
60.300000,2.463249
60.400000,2.458148
60.500000,2.453046
60.600000,2.458148
60.700000,2.458148
60.800000,2.458148
60.900000,2.458148
61.000000,2.460699
61.100000,2.450495
61.200000,2.450495
61.300000,2.450495
61.400000,2.453046
61.500000,2.463249
61.600000,2.458148
61.700000,2.465800
61.800000,2.458148
61.900000,2.458148
62.000000,2.450495
62.100000,2.450495
62.200000,2.455597
62.300000,2.450495
62.400000,2.453046
62.500000,2.458148
62.600000,2.460699
62.700000,2.458148
62.800000,2.458148
62.900000,2.463249
63.000000,2.463249
63.100000,2.450495
63.200000,2.458148
63.300000,2.463249
63.400000,2.463249
63.500000,2.458148
63.600000,2.458148
63.700000,2.458148
63.800000,2.458148
63.900000,2.458148
64.000000,2.465800
64.100000,2.463249
64.200000,2.455597
64.300000,2.463249
64.400000,2.465800
64.500000,2.450495
64.600000,2.450495
64.700000,2.458148
64.800000,2.458148
64.900000,2.458148
65.000000,2.450495
65.100000,2.458148
65.200000,2.450495
65.300000,2.458148
65.400000,2.453046
65.500000,2.458148
65.600000,2.458148
65.700000,2.458148
65.800000,2.453046
65.900000,2.450495
66.000000,2.453046
66.100000,2.455597
66.200000,2.455597
66.300000,2.458148
66.400000,2.458148
66.500000,2.458148
66.600000,2.450495
66.700000,2.458148
66.800000,2.455597
66.900000,2.458148
67.000000,2.450495
67.100000,2.453046
67.200000,2.463249
67.300000,2.455597
67.400000,2.458148
67.500000,2.463249
67.600000,2.463249
67.700000,2.453046
67.800000,2.463249
67.900000,2.460699
68.000000,2.453046
68.100000,2.463249
68.200000,2.460699
68.300000,2.455597
68.400000,2.450495
68.500000,2.458148
68.600000,2.458148
68.700000,2.455597
68.800000,2.458148
68.900000,2.458148
69.000000,2.458148
69.100000,2.455597
69.200000,2.463249
69.300000,2.455597
69.400000,2.460699
69.500000,2.450495
69.600000,2.460699
69.700000,2.450495
69.800000,2.450495
69.900000,2.458148
70.000000,2.458148
70.100000,2.455597
70.200000,2.458148
70.300000,2.455597
70.400000,2.458148
70.500000,2.458148
70.600000,2.458148
70.700000,2.455597
70.800000,2.450495
70.900000,2.458148
71.000000,2.450495
71.100000,2.463249
71.200000,2.463249
71.300000,2.463249
71.400000,2.450495
71.500000,2.450495
71.600000,2.455597
71.700000,2.458148
71.800000,2.460699
71.900000,2.463249
72.000000,2.450495
72.100000,2.458148
72.200000,2.458148
72.300000,2.453046
72.400000,2.463249
72.500000,2.458148
72.600000,2.455597
72.700000,2.458148
72.800000,2.455597
72.900000,2.455597
73.000000,2.455597
73.100000,2.450495
73.200000,2.463249
73.300000,2.450495
73.400000,2.458148
73.500000,2.450495
73.600000,2.458148
73.700000,2.458148
73.800000,2.458148
73.900000,2.450495
74.000000,2.455597
74.100000,2.450495
74.200000,2.458148
74.300000,2.458148
74.400000,2.463249
74.500000,2.460699
74.600000,2.460699
74.700000,2.450495
74.800000,2.455597
74.900000,2.455597
75.000000,2.455597
75.100000,2.450495
75.200000,2.455597
75.300000,2.463249
75.400000,2.450495
75.500000,2.455597
75.600000,2.455597
75.700000,2.463249
75.800000,2.458148
75.900000,2.463249
76.000000,2.458148
76.100000,2.463249
76.200000,2.458148
76.300000,2.455597
76.400000,2.453046
76.500000,2.455597
76.600000,2.463249
76.700000,2.458148
76.800000,2.458148
76.900000,2.463249
77.000000,2.453046
77.100000,2.458148
77.200000,2.455597
77.300000,2.460699
77.400000,2.450495
77.500000,2.455597
77.600000,2.450495
77.700000,2.455597
77.800000,2.450495
77.900000,2.455597
78.000000,2.455597
78.100000,2.455597
78.200000,2.455597
78.300000,2.450495
78.400000,2.455597
78.500000,2.463249
78.600000,2.458148
78.700000,2.455597
78.800000,2.455597
78.900000,2.463249
79.000000,2.458148
79.100000,2.450495
79.200000,2.450495
79.300000,2.450495
79.400000,2.458148
79.500000,2.463249
79.600000,2.455597
79.700000,2.455597
79.800000,2.450495
79.900000,2.450495
stdout
時間:0.700000 電位:2.463249
時間:1.100000 電位:2.458148
時間:1.400000 電位:2.458148
時間:1.600000 電位:2.455597
時間:1.900000 電位:2.463249
時間:2.300000 電位:2.455597
時間:4.000000 電位:2.463249
時間:4.300000 電位:2.455597
時間:5.000000 電位:2.458148
時間:5.200000 電位:2.463249
時間:5.400000 電位:2.465800
時間:5.600000 電位:2.463249
時間:5.800000 電位:2.458148
時間:6.100000 電位:2.465800
時間:6.500000 電位:2.460699
時間:6.900000 電位:2.463249
時間:7.500000 電位:2.463249
時間:7.700000 電位:2.455597
時間:8.000000 電位:2.458148
時間:8.300000 電位:2.458148
時間:8.600000 電位:2.455597
時間:8.800000 電位:2.463249
時間:9.100000 電位:2.458148
時間:9.500000 電位:2.455597
時間:10.100000 電位:2.463249
時間:10.400000 電位:2.463249
時間:11.200000 電位:2.458148
時間:11.500000 電位:2.460699
時間:11.900000 電位:2.458148
時間:12.400000 電位:2.463249
時間:12.900000 電位:2.465800
時間:13.200000 電位:2.463249
時間:13.500000 電位:2.458148
時間:13.800000 電位:2.463249
時間:14.100000 電位:2.463249
時間:14.600000 電位:2.460699
時間:14.800000 電位:2.458148
時間:15.400000 電位:2.463249
時間:15.600000 電位:2.458148
時間:16.200000 電位:2.463249
時間:16.500000 電位:2.455597
時間:16.800000 電位:2.458148
時間:17.000000 電位:2.463249
時間:17.400000 電位:2.458148
時間:18.100000 電位:2.460699
時間:19.000000 電位:2.463249
時間:19.700000 電位:2.455597