我不明白为啥过不了AC,有大神可以帮我看看吗
查看原帖
我不明白为啥过不了AC,有大神可以帮我看看吗
554231
Jayling楼主2021/8/19 20:48
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
	int x;
	cin>>x;
	if(x==1){
		cout<<"Today,I ate 1 apple"<<endl; 
	}else if(x==0){
		cout<<"Today,I ate 0 apple"<<endl;
	} else{
		printf("Today,I ate %d apples\n",x);
	}
    return 0;
}



2021/8/19 20:48
加载中...