- 拼写正确
- @ 2026-06-26 19:28:15
#include<bits/stdc++.h>
using namespace std;
int n,m;
int main( )
{
cin>>n;
while (n)
{
m+=n%10;
n/=10;
}
while (m)
{
int a=0,mt=m,i=1;
while (mt>=10)
{
mt/=10;
i*=10;
}
a=mt;
if (a==0)
cout<<"zero ";
else if (a==1)
cout<<"one ";
else if (a==2)
cout<<"two ";
else if (a==3)
cout<<"third ";
else if (a==4)
cout<<"four ";
else if (a==5)
cout<<"five ";
else if (a==6)
cout<<"six ";
else if (a==7)
cout<<"seven ";
else if (a==8)
cout<<"eight ";
else if (a==9)
cout<<"nine ";
}
return 0;
}
0 条评论
目前还没有评论...
信息
- ID
- 1996
- 难度
- 8
- 分类
- (无)
- 标签
- 递交数
- 11
- 已通过
- 7
- 通过率
- 64%
- 被复制
- 5
- 上传者