f*a
2 楼
给一个number,打印出它的英文描述:
123456
one hundred twenty three thousand four hundred and fifty six.
估计这题写得有问题,似曾相识但是想不起最好的办法。
123456
one hundred twenty three thousand four hundred and fifty six.
估计这题写得有问题,似曾相识但是想不起最好的办法。
f*3
3 楼
请问
假如有一个$2 off 的mfr coupon, cvs $4 get $4 eb, 如果自己有$2 eb , 是不是只
出个税钱就可以了呢?
谢谢
假如有一个$2 off 的mfr coupon, cvs $4 get $4 eb, 如果自己有$2 eb , 是不是只
出个税钱就可以了呢?
谢谢
m*d
4 楼
d*1
5 楼
co-ask
可以定几个
可以定几个
p*2
6 楼
dfs吗?
s*5
7 楼
yes
有的州税都不用出
有的州税都不用出
M*n
8 楼
这怎么会翻呢?
s*n
14 楼
itoa first
then
for each 3 digits
convert it a hundred format,
then from low to high
assemble the final string by append thousand, million, billion
so 123456 --> "123456"
get last 456 to "four hundred and fifty six."
get 124 -> one hundred twenty three
append thousand,
get blah blah--> blah blah million
for each stringbuilder, concanate them together.
【在 f********a 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 给一个number,打印出它的英文描述:
: 123456
: one hundred twenty three thousand four hundred and fifty six.
: 估计这题写得有问题,似曾相识但是想不起最好的办法。
then
for each 3 digits
convert it a hundred format,
then from low to high
assemble the final string by append thousand, million, billion
so 123456 --> "123456"
get last 456 to "four hundred and fifty six."
get 124 -> one hundred twenty three
append thousand,
get blah blah--> blah blah million
for each stringbuilder, concanate them together.
【在 f********a 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 给一个number,打印出它的英文描述:
: 123456
: one hundred twenty three thousand four hundred and fifty six.
: 估计这题写得有问题,似曾相识但是想不起最好的办法。
f*3
15 楼
蛮好
多谢回复
多谢回复
v*v
16 楼
整个录像里可见的人,没有一个对倾覆的车辆里的人表示出任何一点点地救护意识……
车主下车也是先瞄自己的车数眼,并不关心别人是否脱险
还有谁看了感觉脊梁发凉
车主下车也是先瞄自己的车数眼,并不关心别人是否脱险
还有谁看了感觉脊梁发凉
R*1
18 楼
我也觉得是这样
三三切段,一个array对应modular到Thousand, Million, Billion, ...
每三个一段的,就只有个位,十位,百位(和个位一样,后面加hundred)
有更好的方法吗?
【在 s*****n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: itoa first
: then
: for each 3 digits
: convert it a hundred format,
: then from low to high
: assemble the final string by append thousand, million, billion
: so 123456 --> "123456"
: get last 456 to "four hundred and fifty six."
: get 124 -> one hundred twenty three
: append thousand,
三三切段,一个array对应modular到Thousand, Million, Billion, ...
每三个一段的,就只有个位,十位,百位(和个位一样,后面加hundred)
有更好的方法吗?
【在 s*****n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: itoa first
: then
: for each 3 digits
: convert it a hundred format,
: then from low to high
: assemble the final string by append thousand, million, billion
: so 123456 --> "123456"
: get last 456 to "four hundred and fifty six."
: get 124 -> one hundred twenty three
: append thousand,
z*u
23 楼
不能,只能用一个mfr coupon
p*2
26 楼
这题是CC150的17.7
m*l
37 楼
我的几单好像被cancel了
c*a
41 楼
onsite这种程度的题我觉得是小放一把水了。。。
c*k
42 楼
基本上是走路的速度,还能翻成这样
c*p
44 楼
貌似cc150里的
l*i
50 楼
前轮正好顶人家后轮上了
瞬间加速度很大的
瞬间加速度很大的
相关阅读