Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
14872 | Al. | 【入门】Apples | C++ | 通过 | 0 MS | 248 KB | 223 | 2022-12-07 20:39:52 |
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x==0||x==1){ cout<<"Today, I ate"<<" "<<x<<" "<<"apple."; } else{ cout<<"Today, I ate"<<" "<<x<<" "<<"apples."; } return 0; }