Smile9870

1027. Colors in Mars (20)

生词以及在文中的意思

decimal 十进制的

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int p=sc.nextInt();
        String s=Integer.toString(n, 13);
        s=s.toUpperCase();
        String t=Integer.toString(m, 13);
        t=t.toUpperCase();
        String v=Integer.toString(p, 13);
        v=v.toUpperCase();
        System.out.print("#");
        if(s.length()<2) {
            System.out.print("0");
        }
        System.out.print(s);
        if(t.length()<2) {
            System.out.print("0");
        }
        System.out.print(t);
        if(v.length()<2) {
            System.out.print("0");
        }
        System.out.print(v);
    }
}

 

posted on 2018-01-09 14:28  Smile9870  阅读(110)  评论(0编辑  收藏  举报

导航