zoukankan      html  css  js  c++  java
  • HDU 2096 小明A+B --- 水题

    HDU 2096

    /* HDU 2096 小明A+B --- 水题 */
    #include <cstdio>
    
    int main()
    {
    #ifdef _LOCAL
        freopen("D:\input.txt", "r", stdin);
    #endif
        int a, b, c, n;
        scanf("%d", &n);
        while (n--){
            scanf("%d%d", &a, &b);
            a %= 100;
            b %= 100;
            c = a + b;
            c %= 100;
            printf("%d
    ", c);
        }
    
        return 0;
    }
    View Code
  • 相关阅读:
    20210312
    20210311
    20210310
    例5-1
    例5-2
    例4-12-2
    例4-12
    例4-11
    例4-10
    例4-9
  • 原文地址:https://www.cnblogs.com/tommychok/p/5156019.html
Copyright © 2011-2022 走看看