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

Автор Harolinch, история, 3 года назад, По-английски

Dear codeforces community, I came across this problem F: Strange Array and I am not able to solve it and not also able to understand the tutorial. can anyone please help me to solve it ? what is the idea behind it and how to approach the problem

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

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

Автор Harolinch, история, 3 года назад, По-английски

Recently I was trying to solve a problem and I keep getting Memory Limit. here is my solution. Help me figure out why I am getting Memory Limit.

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

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

Автор Harolinch, история, 4 года назад, По-английски

Hello Codeforces Community,

I'm a JS developer and hope every js developer in community supports me.

MikeMirzayanov, there is a package named "tstl" = typescript template library, it's open source library which implements c++/stl.

the link to the package

i hope you add it to to the judge and allow us to require the package in submission file

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

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

Автор Harolinch, история, 4 года назад, По-русски
  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

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

hello all, i'm trying to submit problems in Javascript, some submissions on codeforces use methods readline() and write() for std in/out which i can't find any reference or docs about it.

i'm using Vscode with node installed on windows.

how to write js code and debug it with std in/out on my environment with both mentioned above methods ?

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

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

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

I need your help given string A, B. How to find longest subsequence of A that doesn't include B as substring ?

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

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

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

Dear MikeMirzayanov,

I wish Codeforces has "notes" icon within each problem to allow me write my own private notes for the problem.

I wish Codeforces allows me to have a custom tags, and tag any problem with my own specific tags and allow me to search for a problem by my tags.

for other competitors, what do you wish ...?!

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

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

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

this problem killed me... can anyone help me with it ?

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

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

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

how to access tju online judge ?

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

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

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

having a point p1(x0, y0) and want to find the projection of p1 on the line L given in form ax + by + c = 0

let the projection point is p2(x1, y1), so how to find x1 and y1 ?

i have a code segment which do so but i don't understand it, so can someone help me to understand it ?

the code is

point closest_point (line l, point p)
{
    double k = (l.a * p.x + l.b * p.y + l.c) / (l.a * l.a + l.b * l.b);
    return point (p.x - l.a * k, p.y - l.b * k);
}

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

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

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

i used to use visual studio in debugging, but now i switched to linux and of course i need to learn to debug with gdb, may someone share his experience with me

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

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

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

i'm try to solve this graph problem (double profiles) and it requires to use hashes in order to solve the problem.

first of all, i didn't solve the problem and and if anyone could give me help, i appreciate that.

secondly, when should i know that i need to use hashes to solve a graph problem (what is the properties of the graph problems that need hashes)

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

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

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

i'm trying to solve a dp problem involves bitmasks and when i see others code, all of them have the these lines

for(mask = 0; mask < (1 << k); mask++){
    ..
    for(submask = (mask - 1) & mask; submask > 0; submask = (submask - 1) & mask){
        ..
    }

what these lines means ?

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

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

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

can anyone help me to solve this problem http://codeforces.com/contest/152/problem/E (Garden), i read the editorial but i didn't understand it, may any one clarify it more

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

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