捌柒陆壹

关注

A. Number Transformation

捌柒陆壹

关注

阅读 47

2022-05-03

#include<iostream>
using namespace std;
int main(){
    int t=0;
    cin>>t;
    while(t--){
        int x=0,y=0,a=1,b=1;
        cin>>x>>y;
        //以上为输入
        if(x>y) cout<<"0 0\n";
        else if(y%x) cout<<"0 0\n";
        else{
            b=y/x;
            cout<<a<<' '<<b<<endl;
        }
    }
    return 0;
}

不复杂,只要有答案,a=1就行,b吗,你应该知道了

相关推荐

九点韶留学

A. Floor Number(水题) Codeforces Round #674 (Div. 3)

九点韶留学 132 0 0

伢赞

A. Number of Apartments(暴力出奇迹) Educational Codeforces Round 96 (Rated for Div. 2)

伢赞 18 0 0

九月的栩

Transformation HDU - 4578

九月的栩 75 0 0

8052cf60ff5c

A. Banana

8052cf60ff5c 43 0 0

得一道人

Star Transformation And Cardinality Estimates

得一道人 163 0 0

诗远

Spark Transformation算子->mapPartitionWithIndex

诗远 112 0 0

中间件小哥

SparkStreaming常见transformation算子

中间件小哥 79 0 0

勇敢乌龟

Spark Transformation算子->mapValues

勇敢乌龟 55 0 0

船长_Kevin

Optimizer Transformations: Star Transformation

船长_Kevin 139 0 0

苦茶如歌

Spark Transformation算子->repartition

苦茶如歌 68 0 0

精彩评论(0)

0 0 举报