2 条题解

  • 0
    @ 2025-10-4 20:40:20

    注意范围

    #include<stdio.h>
    int main()
    {
        long long int a,b,t;
        scanf("%lld",&t);
        while(t--){
            scanf("%lld%lld",&a,&b);
            if(a==0&&b==0){
                printf("1\n");
            }else if(a==0&&b!=0){
                printf("1\n");
            }else{
                printf("%lld\n",a+2*b+1);
            }
        }
        return 0;
    }
    

    信息

    ID
    1128
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    (无)
    递交数
    73
    已通过
    10
    上传者