Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя Dalisyron

Автор Dalisyron, 8 лет назад, По-английски

The output for this piece of code is not what I expected :

#include <iostream>

using namespace std;

int main() {
  int n = 10;
  cout << n << " " << n++;
}

OUTPUT : 11 10

Is it because of the way iostream overloads bitwise shift operator or something else? ...

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

Автор Dalisyron, история, 8 лет назад, По-английски

Problem :

Given a weighted directed graph with both negative and positive edges, Find a path from vertex 1 to n, in which minimum subpath weight(starting from vertex 1) is maximum.

I can't think of any graph algorithm that can help me solve this problem, so any suggestions are appreciated.

N<=500

Полный текст и комментарии »

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится