1 条题解

  • 0
    @ 2026-8-5 22:14:14
    #include<iostream>
    using namespace std;
    
    int main(){
        int t;
        cin>>t;
        while(t--){
            int a,b;
            cin>>a>>b;
            cout<<((a%b) ? b-(a%b) : 0)<<endl;
        }
    }
    
    • 1

    信息

    ID
    7267
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    10
    已通过
    7
    上传者