这道题需要注意的地方有:
- 输入用cin函数;
- 输出格式:最后一个元素后面为换行符,即endl.
1 000 1 的输出为 ten thousand one;注意不是ten thousand and one。英语太好的人,要吃亏了。
以下是我的代码,代码满足提交正确,不保证英语语法什么的:
#include<iostream>
#include<string>
#include<vector>
using namespace std;
vector<int> index;
int main(){
string s0[19] = { "one",

博客内容涉及华为的一项在线测试,强调在输入和输出格式上的具体要求,特别是英语表述方面。例如,数字1 000 1在英语中应写作'ten thousand one',而不是'ten thousand and one'。作者提供了满足测试要求但不保证英语语法准确的代码示例。
最低0.47元/天 解锁文章

842

被折叠的 条评论
为什么被折叠?



