标签:
import java.util.Scanner; /** * 给一个分钟的数字,算出来这些分钟代表多少年和多少天 * @author Administrator * */ public class Main6 { public static void main(String[] args) { Scanner input = new Scanner(System.in); long minuts = input.nextLong(); long numberOfDays = minuts/(24*60); long numberOfYears = numberOfDays/365; System.out.println(numberOfDays%365+"---"+numberOfYears); } }
标签:
原文地址:http://www.cnblogs.com/aicpcode/p/4396276.html