Exemplo n.º 1
0
		if(b == '-'){
			minus = true;
			b = readByte();
		}
		
		while(true){
			if(b >= '0' && b <= '9'){
				num = num * 10 + (b - '0');
			}else{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }
}



# minimum deletions

# c soln  -- ok tested

#include<stdio.h>
 	long gcd(long,long);
int main()
    {
     
      	long t,a[1000],i,j,n,f;
      	scanf("%li",&t);