题解 | #kiki算数#

kiki算数

http://www.nowcoder.com/practice/bcaf710fb58a44e1b678a890e6e90d7c

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        String[] nums = str.split(" ");
        int a = Integer.parseInt(nums[0]);
        int b = Integer.parseInt(nums[1]);
        int sum = (a % 100 + b % 100) % 100;//只需要用a,b的低两位相加,并对100取余即可
        System.out.println(sum);
    }
}
全部评论

相关推荐

不愿透露姓名的神秘牛友
昨天 11:22
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务