Thursday, 23 January 2014

UVa Problem ID 11340 (Newspaper)

//Note:-use long to get the total cent int is not enough

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.HashMap;

public class Main {
	public static void main(String[] args) throws IOException 
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
       
        int N=Integer.parseInt(br.readLine());
        if(N<=0 || N>5)
        	System.exit(0);
        for (int k1 = 0; k1 100)
        	System.exit(0);
        HashMap m=new HashMap();
        long cost = 0;
        for (int i = 0; i 150000)
        	System.exit(0);
        for (int i = 0; i 10000)
        		break;
        	for (int j = 0; j 
Previous Post
Next Post

0 comments:

Advertisement