回答編集履歴
1
共通の数
test
CHANGED
@@ -114,6 +114,16 @@
|
|
114
114
|
|
115
115
|
side[num2[i]-1] = num2[i];
|
116
116
|
|
117
|
+
// 共通の数
|
118
|
+
|
119
|
+
for(int j = 0; j < 10; j++) {
|
120
|
+
|
121
|
+
if(num1[i] == num2[j]) same[num1[i]-1] = num1[i];
|
122
|
+
|
123
|
+
if(num2[i] == num1[j]) same[num2[i]-1] = num2[i];
|
124
|
+
|
125
|
+
}
|
126
|
+
|
117
127
|
}
|
118
128
|
|
119
129
|
```
|