Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
320718 董睿腾 最近的数字 T1 C++ 解答错误 5 MS 700 KB 173 2026-05-06 20:45:05

Tests(1/10):


#include <bits/stdc++.h> using namespace std; int main(){ int n,d; cin>>n>>d; int h=n%d; if(-h>d-h) cout<<n+d-h; else cout<<n-h; return 0; }


测评信息: