//第二题只用各位相加就行啦~ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for (int i = 0; i < t; ++i) { long num = sc.nextLong(); if (num < 233 || num % 233 != 0) { System.out.println(-1); continue; } long n = num / 233; int res = 0; while (n > 0) { res += n % 10; n /= 10; } System.out.println(res); } } }
点赞 评论

相关推荐

野猪不是猪🐗:现在的环境就是这样,供远大于求。 以前卡学历,现在最高学历不够卡了,还要卡第一学历。 还是不够筛,于是还要求得有实习、不能有gap等等... 可能这个岗位总共就一个hc,筛到最后还是有十几个人满足这些要求。他们都非常优秀,各方面都很棒。 那没办法了,看那个顺眼选哪个呗。 很残酷,也很现实
点赞 评论 收藏
分享
牛客网
牛客企业服务