回答編集履歴

1

あああ

2016/07/30 06:40

投稿

otaks
otaks

スコア223

test CHANGED
@@ -24,11 +24,7 @@
24
24
 
25
25
  double getAisho(char* birth1, char* birth2) {
26
26
 
27
- int b1 = atoi( birth1 );
28
-
29
- int b2 = atoi( birth2 );
30
-
31
- double ret = (double)(b1 * b2);
27
+ double ret = (double)( atof( birth1 ) * atof( birth2 ) );
32
28
 
33
29
  while( ret >= 100.0 ) {
34
30