int read(){ int s=0,g=1; char ch=getchar(); while(ch<‘0’||ch>‘9’){ if(ch==’-‘)g=-1; ch=getchar(); } while(ch>=‘0’&&ch<=‘9’){ s=s10+ch-‘0’; ch=getchar(); } return sg; }