Search found 1 match

by Paiev
Sun Oct 12, 2008 9:03 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125884

Re: 10189 - Minesweeper

I get TLE, anyone know why?

#include <iostream>

#define MIN(a, b) (a < b ? a : b)
#define MAX(a, b) (a > b ? a : b)

int main()
{
char grid[101][101];
int length, width;
int field = 1;
std::cin >> length >> width;
std::cin.get();
while (length != 0 && width != 0)
{
std::cin.get();
if ...

Go to advanced search