回答編集履歴

2

修正

2018/10/30 11:27

投稿

asm
asm

スコア15147

test CHANGED
@@ -28,8 +28,8 @@
28
28
 
29
29
  while(*s1 == *s2++)
30
30
 
31
- if(*s1++ == '\0') return 1;
31
+ if(*s1++ == '\0') return 0;
32
32
 
33
- return 0;
33
+ return 1;
34
34
 
35
35
  ```

1

追記

2018/10/30 11:26

投稿

asm
asm

スコア15147

test CHANGED
@@ -15,3 +15,21 @@
15
15
 
16
16
 
17
17
  でよいかと
18
+
19
+
20
+
21
+ ---
22
+
23
+
24
+
25
+ ちなみにこれで充分
26
+
27
+ ```c
28
+
29
+ while(*s1 == *s2++)
30
+
31
+ if(*s1++ == '\0') return 1;
32
+
33
+ return 0;
34
+
35
+ ```