2 solutions
-
0
Guest MOD
- 1
Information
- ID
- 343
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- (None)
- # Submissions
- 372
- Accepted
- 70
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main() {
int x,i;
cin>>x;
cout<<"Today,I ate 1 apple."<<endl;
if(x>1) {
for(i=2; i<=x; i++) {
cout<<"Today,I ate "<<i<<"apples."<<endl;
}
}
return 0;
}
这不很简单吗???
不至于错的人这么多吧?不会的题,其实可以问排名前几的大佬
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.