HDU1996 汉诺塔VI[入门]
本题实际上是计算3^n。编程中需要注意输出格式。???
为森么?数学问题搞不清楚辽······
注意输出格式

#include <iostream>
#include <cmath>

using namespace std;

int main(){
	int t,n;
	cin>>t;
	
	while(t--){
		cin>>n;
        printf("%.lf\n", pow(3, n));双精度输出格式 
	}
	return 0; 
} 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
  • 2021-12-11
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案