回答編集履歴
1
あああ
answer
CHANGED
@@ -11,9 +11,7 @@
|
|
11
11
|
@return 相性
|
12
12
|
*/
|
13
13
|
double getAisho(char* birth1, char* birth2) {
|
14
|
-
int b1 = atoi( birth1 );
|
15
|
-
int b2 = atoi( birth2 );
|
16
|
-
double ret = (double)(
|
14
|
+
double ret = (double)( atof( birth1 ) * atof( birth2 ) );
|
17
15
|
while( ret >= 100.0 ) {
|
18
16
|
ret /= 2.0;
|
19
17
|
}
|