求助!第一遍前面两个测试点通不过,改过以后刚好后面三个测试点过不了是什么道理啊
查看原帖
求助!第一遍前面两个测试点通不过,改过以后刚好后面三个测试点过不了是什么道理啊
1004048
FreshLittleLemon楼主2023/7/19 14:58

求助!第一遍前面两个测试点通不过,改过以后刚好后面三个测试点过不了是什么道理啊

以下是两次尝试的代码:

第一遍

#include <stdio.h>

int main()
{
    unsigned int n;
    scanf("%d" ,&n);
    printf("Today, I ate %u apple%c.",n ,n>1?'s':'\0');
    return 0;
}

第二遍

#include <stdio.h>

int main()
{
    unsigned int n;
    scanf("%d" ,&n);
    printf("Today, I ate %u apple.%s",n ,n>1?"\bs.":"\0");
    return 0;
}

各位大佬帮帮

2023/7/19 14:58
加载中...