21993 倒序

倒序

https://ac.nowcoder.com/acm/problem/21993


#include<iostream>
using namespace std;
int main()
{
    int a, b, c;
    cin>>a>>b>>c;
    cout<<c<<b<<a;
    return 0;
}

答案错误:您提交的程序没有通过所有的测试用例
case通过率为0.00%

???


#include<iostream>
using namespace std;
int main()
{
    int a, b, c;
    cin>>a>>b>>c;
    cout<<c<<" "<<b<<" "<<a;
    return 0;
}

答案正确:恭喜!您提交的程序通过了所有的测试用例
orz
输入输出格式很重要啊各位


为什么题目里要写 0 <= a, b,c <= 2^{31}-1

全部评论
提醒你用int就行了,不用long long或unsigned long long
1
送花
回复
分享
发布于 2022-01-16 11:15
为什么呀~
点赞
送花
回复
分享
发布于 2021-07-10 13:11
网易互娱
校招火热招聘中
官网直投

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务