美文网首页
CodeFoeces-1238A

CodeFoeces-1238A

作者: ss5smi | 来源:发表于2019-11-22 15:23 被阅读0次

    题目

    原题链接:A. Prime Subtraction

    题意

    大意为问所给x和y的差是否为任意素数的倍数。

    代码

    #include<stdio.h>
    int main(){
        int n;
        long long x,y;
        scanf("%d",&n);
        while(n--){
            scanf("%lld%lld",&x,&y);
            if(x-y == 1){
                printf("NO\n"); 
            }else{
                printf("YES\n");    
            }
        } 
        return 0;
    }
    

    相关文章

      网友评论

          本文标题:CodeFoeces-1238A

          本文链接:https://www.haomeiwen.com/subject/gaahrctx.html