现在的位置: 首页 > 综合 > 正文

java输入外挂

2018年04月26日 ⁄ 综合 ⁄ 共 247字 ⁄ 字号 评论关闭
class MyInputStream extends InputStream {
	public BufferedInputStream bis = new BufferedInputStream(System.in);
	public int read() throws IOException {
		int i;
		while ((i = bis.read()) < 48)
			if (i == -1)
				return -1;
		int temp = 0;
		while (i > 47) {
			temp = temp * 10 + i - 48;
			i = bis.read();
		}
		return temp;
	}
}

抱歉!评论已关闭.