因為與原本的價格一樣。
分2塊的時候,表面積會比原本球的表面積多2塊半圓,
一塊半圓會佔利潤的25%(π*r/4*π*r=1/4=25%),
所以2塊的時候是50%的利潤。
分3塊的時候,表面積會比原本球的表面積多3塊半圓=>75%。
分4塊的時候,表面積會比原本球的表面積多4塊半圓=>100%。
以此類推......
[C](0.044)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int n; | |
while( scanf( "%d", &n ) != EOF && n > 0 ) | |
if( n == 1 ) | |
printf( "0%\n"); | |
else | |
printf( "%.0lf%%\n", (double)n*25.0 ); | |
return 0; | |
} |
0 意見:
張貼留言