贴一下第一题,轻喷 public static void main(String[] args) {          Scanner in = new Scanner(System.in);          String s="";          int a = in.nextInt();          int b = a/10000;          if(b>=1) {              String b1=Integer.toString(b);              s=b1+'W';          }          int c=(a/1000)%10;          if(c>=1) {              String c1=Integer.toString(c);              s=s+c1+'Q';          }          int d=(a/100)%10;          if(d>=1) {              String d1=Integer.toString(d);              s=s+d1+'B';          }          int e=(a/10)%10;          if(e>=1) {              String e1=Integer.toString(e);              s=s+e1+'S';          }          int f=a%10;          if(f>=1) {              String f1=Integer.toString(f);              s=s+f;          }          System.out.println(s); }
点赞 3

相关推荐

专业嗎喽:个人信息名字太大,合到电话邮箱那一栏就行,有党员写过党,剩下其他全删,站空太大了 把实习经历丰富,放最前面,然后是个人评价,技能之类的,然后是学校信息。项目经历最后面,可以就选一个自己擅长的。 现在是学校不是92就扣分的,没必要放前面。 然后现在看重实习经历>竞赛经历(校园经历)>课程项目经历
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务