import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param num int整型 * @return string字符串 */ public String convert_to_base6 (int num) { // write code here if(num==0){ return "0"; } String str=""; int record=Math.abs(num); while(record>0){ int y=record%6; str=y+str; record/=6; } if(num<0){ return "-"+str; } return str; } }