提交时间:2026-05-02 15:59:11
运行 ID: 320022
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b; c=a%b; d=b-c; if(c>d)cout<<a+d; else if(c<d)cout<<a-c; else cout<<a-c<<endl<<a+d; return 0; }