Submission #9495

# Submission time Handle Problem Language Result Execution time Memory
9495 2014-09-28T06:50:51 Z silas Solve another chuck (kriii2_S) C++
0 / 4
0 ms 1672 KB
#include <iostream>
using namespace std;

int R, C;

int main() {
	cin >> R >> C;
	int sum = 0;
	int temp;
	for (int i = 0 ; i < R; i++) {
		for (int j = 0 ; j < C; j++) {
			cin >> temp;
			if (temp < 0)
				temp = (-1) * temp;
			sum += temp;
		}
	}
	cout << sum << endl;
	return 0;
}
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 1672 KB Output is partially correct
2 Partially correct 0 ms 1672 KB Output is partially correct
3 Partially correct 0 ms 1672 KB Output is partially correct
4 Incorrect 0 ms 1672 KB Output isn't correct
5 Halted 0 ms 0 KB -