[ZOJ]1002

[code language=”cpp”] #include<iostream> using namespace std; char map[4][4]; int n, maxNum; bool CanPut(int row, int col) { int i; if (map[row][col] == ‘X’) return false; for(i = row – 1; i >= 0; –i) { if (map[i][col] == ‘O’) return false; if (map[i][col] == ‘X’) break; } for(i = col – 1; i >= 0; […]

Read more
www.000webhost.com