質問編集履歴
2
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,9 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
c
|
31
|
+
```c
|
32
|
-
|
33
|
-
|
34
32
|
|
35
33
|
#include <stdio.h>
|
36
34
|
|
@@ -54,6 +52,8 @@
|
|
54
52
|
|
55
53
|
}
|
56
54
|
|
55
|
+
```
|
56
|
+
|
57
57
|
|
58
58
|
|
59
59
|
### 試したこと
|
1
行をそろえました
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,21 +40,19 @@
|
|
40
40
|
|
41
41
|
int main() {
|
42
42
|
|
43
|
-
char a[1000], b[1000],c;
|
43
|
+
char a[1000], b[1000], c;
|
44
44
|
|
45
|
-
scanf("%s%c%s", a, &c, b);
|
45
|
+
scanf("%s%c%s", a, &c, b);
|
46
46
|
|
47
|
-
strcat(a, a);
|
47
|
+
strcat(a, a);
|
48
48
|
|
49
|
-
if (strstr(a, b) == NULL) printf("No\n");
|
49
|
+
if (strstr(a, b) == NULL) printf("No\n");
|
50
50
|
|
51
|
-
else printf("Yes\n");
|
51
|
+
else printf("Yes\n");
|
52
52
|
|
53
|
-
return 0;
|
53
|
+
return 0;
|
54
54
|
|
55
55
|
}
|
56
|
-
|
57
|
-
|
58
56
|
|
59
57
|
|
60
58
|
|