This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(int argc, char const *argv[]) | |
{ | |
const int MAX = 102; | |
const int STEP[4][2] = {{0, -1}, {-1, 0}, {0, 1}, {1, 0}}; | |
int matrix[MAX][MAX] = {0}; | |
int n, x, y, s = 0, sum = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
#define CONCAT(a, b) a##b | |
#define file_type CONCAT(FI, LE) | |
#define file_open CONCAT(fo, pen) | |
#define file_scanf CONCAT(fs, canf) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
#define CONCAT(a, b) a##b | |
#define file_type CONCAT(FI, LE) | |
#define file_open CONCAT(fo, pen) | |
#define file_scanf CONCAT(fs, canf) |
NewerOlder