When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

yamero's blog

By yamero, history, 3 years ago, In English

Hello I need some help regarding 1553B - Reverse String. At the third testcase in the given input output scenario, the string s is aab and string t is baaa.

If I put the chip at index 2 (on 'b') in string s and move it left twice and then once right, I can obtain the string t. Here is the process.

Put chip at index 2-> A A B

Move left -> A A B

Move left again -> A A B

Now move right -> A A B

This finally gives us BAAA. Unless I am missing something the output should be YES instead of NO. Can anyone help me sort this out? Thanks.

Full text and comments »

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

By yamero, history, 3 years ago, In English

Hello, i recently did the 1547C - Pair Programming. The code works fine on my machine but im getting a Runtime Error when i submit it to codeforces. Here is my submission 122403017. I'm a noob compared to most people here so please have mercy.

Also thanks in advance. I hope this is a learning moment for me :)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By yamero, history, 3 years ago, In English

Hello, im relatively new to cpp and codeforces. Ive been working the problem 1494A for 2 days now, but I am still failing at some testcases. I really dont want to consult the solutions. Could anyone just provide me a hint as to what im doing wrong. Any advices in general are also appreciated....

Thanks a lot. Here is my 119538142 for the problem no: 1494A - ABC String

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By yamero, history, 3 years ago, In English

Hi, im a complete noob in cpp and did this problem 540A - Combination Lock

Here is my submission: 119121702

The test case that the code fails is

12
102021090898
010212908089

The code works perfectly on my pc but when i upload it to codeforces i get a runtime error and i cant figure out why. Any help would be appreciated...

Thanks in advance.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it