Comment detail
LL Golf Hole 5 - 最上位の桁を数え上げる (Nested Flatten)This comment is reply for 7145 mattsan: ちょっと不格好かなぁ…。(LL Golf Hole 5 - 最上位の桁を数え上げる). Go to thread root.
別関数に分けずにベタでmain内に書いたほうがよっぽど短かった orz というわけで元コードは自分で-1. 116btyes.実質109bytes
1 2 3 4 5 | #include<iostream>
main(){
int c=0,d=1,n;std::cin>>n;
while(c<=n)std::cout<<c<<"\n"&&(c+=d)&&c/d/10&&(d*=10);
}
|




turugina
#7184()
[
C++
]
Rating-1/1=-1.00
Rating-1/1=-1.00-0+