/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/diagonal-difference * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include #include #include #include #include using namespace std; // Sum up and substract. Straightforward. int main() { int n; scanf("%d",&n); int mat[100][100]; for (int i=0;i