1 条题解

  • 0
    @ 2026-8-7 20:47:24
    #include<iostream>
    #define int long long
    using namespace std;
    
    signed main(){
        int t;
        cin>>t;
        while(t--){
            int x,y,n;
            cin>>x>>y>>n;
            int a=n-y;
            cout<<a/x*x+y<<endl;
        }
    }
    
    • 1

    信息

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