出错在哪里83.33%

#include<bits/stdc++.h>

using namespace std;

float a;

int main(){

cin >> a;

cout << static_cast<int>(round(a/10.0)*10) ;

return 0;

}

全部评论
这样修改就正确100%了: #include<bits/stdc++.h> using namespace std; int a; int main(){     cin >> a;          cout << static_cast<int>(round(a/10.0)*10) ;     return 0; }
点赞 回复 分享
发布于 2024-11-13 10:16 陕西

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务