Chinaunix首页 | 论坛 | 博客
  • 博客访问: 22343
  • 博文数量: 69
  • 博客积分: 1545
  • 博客等级: 上尉
  • 技术积分: 735
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-03 14:17
个人简介

fdsfdsfdsfds

文章分类

全部博文(69)

文章存档

2014年(8)

2012年(61)

我的朋友

分类: Java

2012-04-05 13:50:41



import java.util.*;

public class Main{
  public static void main(String args[]){
  Scanner cin=new Scanner(System.in);
   int n=cin.nextInt();

    for(int i=0;i
    boolean flag=true;
        int tmp=cin.nextInt();
        String s=tmp+"";
        char[] c=s.toCharArray();
        for(int j=1;j
        if(!flag&&c[j]=='0')System.out.print("0");
        
        if(c[j]!='0') {System.out.print(c[j]);flag=false;}
         
        }
        if(flag)         System.out.print("0");
        System.out.println();
        
   }
}
}

 
#include
int main()
{
int n,m;
scanf("%d",&n);
while(n--)
{
scanf("\n%*c%d",&m);
printf("%d\n",m);
}
}                
阅读(101) | 评论(0) | 转发(0) |
0

上一篇:hdu 41 水题

下一篇:hdu 101

给主人留下些什么吧!~~