xINFERNOx's blog

By xINFERNOx, history, 5 years ago, In English

Why the second code executes within 500ms whereas the first one gives TLE(2000ms) ?

1497E1 - Бесквадратное разбиение (простая версия)

const int N = 1e7 + 5;
vector<int> maping(N);
int i,j;
Code 1
Code 2

Full text and comments »

  • Vote: I like it
  • -7
  • Vote: I do not like it