답안 #9215

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
9215 2014-09-28T04:48:20 Z corea Solve another chuck (kriii2_S) C++14
0 / 4
0 ms 1088 KB
#include <stdio.h>
int a, b;
int main(){
	scanf("%d%d", &a, &b);
	int minabs = 2147483647;
	int plus = 0, zero = 0, minus = 0;
	int i, j;
	long long sum = 0;
	for(i = 0; i < a; i++){
		for(j = 0; j < b; j++){
			int x;
			scanf("%d", &x);
			int absx = x < 0 ? -x : x;
			if(absx < minabs) minabs = x;
			sum += absx;
			if(x > 0) plus++;
			else if(x == 0) zero++;
			else minus++;
		}
	}
	if(a % 2 == 1 || b % 2 == 1) printf("%lld 0\n", sum);
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 1088 KB Output is partially correct
2 Partially correct 0 ms 1088 KB Output is partially correct
3 Partially correct 0 ms 1088 KB Output is partially correct
4 Incorrect 0 ms 1084 KB Output isn't correct
5 Halted 0 ms 0 KB -