{{{ // algorithm.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다. // #include "stdafx.h" #include #include #include #include char c[255]; int len; int aa(char *c); int isMinus(char c); int _tmain(int argc, _TCHAR* argv[]) { FILE *f=fopen("input.txt","rt"); int matrix[110][110]; int i,j,max = -0x7fffffff; int mom=-0x7fffffff; int a,n,m; int flag = 0; fscanf(f,"%d %d",&n,&m); int k; for(i=0;imax) max=matrix[i][j]; } printf("row %d: ",i+1); if(max==-0x7fffffff) { printf("NaN \n"); } else { printf("%d\n",max); if(mommax) max=matrix[j][i]; } printf("column %d: ",i+1); if(max==-0x7fffffff) { printf("NaN \n"); } else { printf("%d\n",max); if(mom=2) || c[0]>='0' && c[0]<='9' ) flag=0; else flag=1; for(int x=1;x= '0' && c[x] <= '9')){ flag=1; break; } } if(flag==0) a=atoi(c); if(flag==0) return a; int bu; int sum1=0,sum2=0,x; int sw=0; if(c[0]=='-') sw=1; else if(isdigit(c[0]) ) sum1=0; else return -0x7fffffff; for(x=sw;x