题解 | #你能活多少秒#
你能活多少秒
http://www.nowcoder.com/practice/e1d1bd99fee34b66ae3c777b74d555c8
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int age = in.nextInt();
double sec = age * 3.156e7;
System.out.println((long)sec);//注意类型转换,如果不转换,会输出科学计数法的结果
}
}