Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
14883 | 戰無不勝的毛澤東思想萬歲! | 【入门】Apples | C++ | 通过 | 0 MS | 248 KB | 251 | 2022-12-07 20:48:23 |
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x>1){ cout<<"Today, I ate "<<x<<" apples."; }else if(x==0){ cout<<"Today, I ate 0 apple."; }else if(x==1){ cout<<"Today, I ate 1 apple."; } return 0; }