#16381: 0 要記得省略


Murray_Colbert_is_the_Best (Your Dad's Best Friend)


#include<stdio.h>
int main(){
int n;

while(scanf("%d",&n)!= EOF){
if(n == 0){
printf("0\n");
continue;

}
while(n%10 == 0){
n=n/10;
}
while(n > 0){
printf("%d",n%10);
n = n/10;
}
printf("\n");
}

return 0;
}

#17282: Re:0 要記得省略


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include
int main(){
int n;

while(scanf("%d",&n)!= EOF){
if(n == 0){
printf("0\n");
continue;

}
while(n%10 == 0){
n=n/10;
}
while(n > 0){
printf("%d",n%10);
n = n/10;
}
printf("\n");
}

return 0;
}

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char** argv){

ios::sync_with_stdio(false);

cin.tie(0);

int a,b;    

while(cin>>a){

b=0;    

while(a!=0){          

b=b*10+a%10;    

a/=10;    

cout<<b<<'\n';   

}

}

這樣.....