I_need_7.0_IELTS's blog

By I_need_7.0_IELTS, history, 4 months ago, In English

How can it be? Is he alien or something? I really want to see his screencast.

Full text and comments »

  • Vote: I like it
  • +96
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 4 months ago, In English

I see there are some accounts which shows their Facebook. But I can't find where to do it in Settings. Anyone knows how to do it?

Full text and comments »

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

By I_need_7.0_IELTS, history, 10 months ago, In English

I have setted a problem on Polygon for my private group. Its statement has 2 languages: Vietnamese and English. However, when I open my problem on Codeforces, I cannot find the way to change the problem statement to Vietnamese (English is default). Can anyone help me? Thank you in advance.

Full text and comments »

  • Vote: I like it
  • +16
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 10 months ago, In English

Fun fact: this eugalt guy always try to shorten his code

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 12 months ago, In English

Hello, Codeforces!

Currently, there are many blogs about how to be good at programming, their practice methods are super useful. Today I will write oppositely, I will show you ways to be bad at programming. I guarantee, if you follow what I will mention below, you will be bad forever, to the point of not being able to get better :)

P/s: -Original post- Don't downvote it :( I just write for fun

1. Spend as little time as possible

"Dilligence in place of intelligence". If you spend half an hour improving your programming skill, you cannot be bad. Instead, you should spend time doing other stuff like surfing Facebook or playing games. In case you have nothing to do, you would better go to sleep. One more thing to keep in mind, don't enter the programming forums, don't subscribe YouTube channels or reading blogs about programmings, because if you do that, you will be easy to gain knowledge and cannot be bad.

2. Despise elementary knowledge

Don't learn elementary knowledge like binary search or sorting algorithms or simple data structures. Those things are basis of being a good programmer in near future. So if you hear someone says you have to learn these basic algorithms, don't follow them, if you don't want to be good.

3. Don't follow to the forebears' advice

The forebears like your teachers, brothers, sisters or friends, ... are those who have had practical experience, they know how to learn programming well. If they give you advice, just do the opposite :) or at least ignore it, I swear you won't be able to make any progress in learning programming.

4. Learning theories is always enough

"Learning with practice", that's might be the only way to develop skills, so don't practice. Solving problems will help you to be good in no time. So don't do that, theories are more than enough, or you don't even need to learn theories if you want to become the most stupid person.

5. Don't find free courses on the Internet

Nowadays, it is not hard to find a free course with high quality on the Internet. Don't search keywords like "Elementary C++ programming" or "Basic data structures", etc... if you don't want to be better.

6. Don't be proactive

If you encounter a difficult problem, don't spend time thinking, just ask your friends or searching for tutorial. In short, you shouldn't be proactive, don't think before asking.

7. Don't learn English

If you notice, the most quality documents about technology or programming is mainly written in English. In addition, if you learn English well, you will be exposed to an extremely rich and diverse source of materials, which will make you have more knowledge instead of being ignorant about programming.

8. Don't have passion

After all, if you are passionate, you will be a good programmer in short time. So keep in mind, if you want to be ignorant about programming, absolutely don't have passion on it. If you are forced to learn programming, for example, programming is a compulsory subject on your school, you should only learn to pass the exam, or ask someone to do homework for you.

Conclusion

Those are some of the problems that I thing are the most important if you want to be bad at programming. So how to be GOOD? Simply, just do the opposite of what I mentioned above, or at least avoid doing those things.

Have fun! :)

UPD: Why so many downvotes? I just write for fun. Don't take it seriously. :(

Full text and comments »

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

By I_need_7.0_IELTS, 12 months ago, In English

I have no intention to blame Codeforces admins for fixing the server that long because I believe they've tried their best anyway.

I'm in Vietnam, my time zone is UTC+7, that means Codeforces server maintained from 6:30 AM yesterday to today (now is 12:30 AM in my time zone).

So sad... :'(

P/s: Sorry for my weak English.

Full text and comments »

  • Vote: I like it
  • +149
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 12 months ago, In English

Statement

Given $$$n$$$ strings. Find the string $$$s$$$ with minimum length such that each of $$$n$$$ given strings is a substring of $$$s$$$.

Constraint

$$$n \le 50$$$

Every of $$$n$$$ strings has length not exceed $$$10$$$

Example:

Input:

3
ab
ba
abb

Output:

abba

This problem is hard for me. Can you give me a hint? Thank you in advance.

Full text and comments »

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

By I_need_7.0_IELTS, history, 13 months ago, In English

Problem source

104168D2 - Nested Sum (Hard Version)

Statement

Given an array of $$$n$$$ positive integers $$$a_{1}, a_{2},...,a_{n}$$$, find the value of $$$\sum_{i=1}^{n}\sum_{j=i+1}^{n}\sum_{k=j+1}^{n}a_{i}a_{j}a_{k}$$$ modulo $$$10^{9}+7$$$

Input

The first line of input contains an integer $$$t$$$ ($$$1 \le t \le 10^{4}$$$).

The first line of each test case contains an integer $$$n$$$ ($$$1 \le t \le 10^{5}$$$), the size of the array.

The second line of each test case contains $$$n$$$ integers $$$a_{1}, a_{2},...,a_{n}$$$ ($$$1 \le t \le 10^{9}$$$), the elements of the array.

The sum of n over all test cases doesn't exceed $$$5\cdot 10^{5}$$$.

Output

For each test case output one line containing one integer, the sum described in the problem modulo $$$10^{9}+7$$$

Example

Input
Output

What I've done

I have tried to solve this problem for an hour but when I submit it, many testcase is WA:

My verdict

I don't know why my code failed, can you find out my mistake? This is my code.

My code

Thank you in advance ❤️

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 13 months ago, In English

How could this guy submit B and G2, C and G1 at the same time?

Full text and comments »

  • Vote: I like it
  • +28
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 14 months ago, In English

I have got 105 unsuccessful hacking attempt now ;) will I lose any point in this hacking phase? Thank you in advance.

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 14 months ago, In English

I wonder what will happen if I successfully hack my own solution in a 12-hour hacking phase in Div.3, Div.4 or Educational rounds after seeing this!

Full text and comments »

  • Vote: I like it
  • +9
  • Vote: I do not like it

By I_need_7.0_IELTS, history, 14 months ago, In English

I think we should have a "Difficulty" column besides the "Problem" column so that we can see the average difficulty of the problems a person solves. (Sorry for my poor English)

Full text and comments »

  • Vote: I like it
  • +67
  • Vote: I do not like it