回答編集履歴

2

変更

2017/08/19 03:24

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
File without changes

1

変更

2017/08/19 03:24

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -54,27 +54,11 @@
54
54
 
55
55
  /*3つの文字列の長さを比較したい*/
56
56
 
57
- if (length > length2){
57
+ lenmax = length;
58
58
 
59
- if (length > length3){
59
+ if (lenmax < length2) lenmax = length2;
60
60
 
61
- lenmax = length;
62
-
63
- } else {
64
-
65
- lenmax = length3;
66
-
67
- }
68
-
69
- }else if (length2 > length3){
61
+ if (lenmax < length3) lenmax = length3;
70
-
71
- lenmax = length2;
72
-
73
- } else {
74
-
75
- lenmax = length3;
76
-
77
- }
78
62
 
79
63
 
80
64