
public class ExtremeTask {
	
	public boolean isExtremetask(TaskList tasklist)
	{
		int i=0;
		int host_name = Input.server_num;
		SeverList serverlist = main_program.serverlist_head;
		
		while(serverlist.getNext() != null)
		{
			serverlist = serverlist.getNext();
			if(serverlist.get_all_Memory() >= tasklist.get_need_Memory())
			{
				i++;
			}
		}
		if(i > host_name/5 || i != 1)
		{
			return false;
		}
		else return true;
		
	}

}
