1001
来源:互联网 发布:c语言凯撒密码编程 编辑:程序博客网 时间:2024/04/23 19:00
import java.util.Scanner;
import java.math.BigDecimal;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
while(true){
String temp=in.nextLine();
String[] str=temp.trim().split(" ");
BigDecimal num=new BigDecimal(str[0]);
int i;
for(i=1;str[i].equals("");i++)
;
i=Integer.parseInt(str[i]);
num=num.pow(i);
num=num.stripTrailingZeros();
temp=num.toPlainString();
if(temp.startsWith("0."))
temp=temp.substring(1);
System.out.println(temp);
}
}
}
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 1001
- 复制的eclipse常用快捷键 和 设计模式理解方式
- 复制的eclipse常用快捷键 和 设计模式理解方式
- Oracle优化器(Optimizer)!
- Open Inventor写操作SoWriteAction
- delphi调用C#写的web服务例子
- 1001
- KVM虚拟机和QEMU
- Struts标签实现循环效果
- 转载:活着
- Open Inventor接触交互SoIntersectionDetectionAction
- 解决在VS2005中“当前不会命中断点。源代码与原始版本不同”的问题
- 一些machine learning的网站总结
- Flash笔记之用位图填充圆
- 3D编程的四个境界