回答編集履歴

1

変更

2017/11/25 15:51

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -34,15 +34,13 @@
34
34
 
35
35
  count++;
36
36
 
37
- if(text[i]=='?' || text[i]=='!'){
37
+ if (text[i]=='?' || text[i]=='!'){
38
38
 
39
- while(text[i]=='?' || text[i]=='!'){
39
+  while(i<=strlen(text) && (text[i]=='?' || text[i]=='!')){
40
40
 
41
- if (i==strlen(text)) break;
41
+ i++;
42
42
 
43
- i++;
44
-
45
- }
43
+ }
46
44
 
47
45
  }
48
46