题解 | #你能活多少秒#
你能活多少秒
https://www.nowcoder.com/practice/e1d1bd99fee34b66ae3c777b74d555c8
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int age = scanner.nextInt(); double seconds = 3.156*Math.pow(10,7)*age; System.out.println((long) seconds); } }