import java.util.Scanner; public class Main {     public static void answer(long n){         char[] c = {'0','1','2','3','4','5','6','7','8','9','`','!','@','#','$','%',                     '^','&','*','(',')','{','}','\\','<','>','?'};         long temp = n;         String answer = "";         while (temp != 0) { int x = (int)(temp % 27); answer = c[x] + answer; temp /= 27; }         System.out.println(answer);     }          public static void main(String[] args) {         Scanner in = new Scanner(System.in);         long n = in.nextLong();         answer(n);     } }
点赞 4

相关推荐

09-19 13:59
门头沟学院 Java
用微笑面对困难:Trae一下,如果真成了,他用了直接发字节起诉代码版权,,这个代码不商用是没问题的如果没成也是情理之中的。
点赞 评论 收藏
分享
10-17 17:54
门头沟学院 Java
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务