2019.7.17 brush title Statistics

The first question: 1046

The original Code:

This question I repeatedly submitted several times, still can not tell outputs "0" output or "000."

Later, after reading chendongchen code, I found no special treatment, just need to find numbers drawn in a particular cycle = 0:00 mark can be.

This question is actually relatively simple, but I want to be too complicated.

AC Code:

The second question: 1053

The original Code:

The code is really thinking too complicated, actually also defines the map, but this is just a simulation questions only.

When was submitted by two points, however, time-consuming and has reached 680ms, today saw sunxiyue code, only to find that this question could be so simple.

Today I know that a lot of questions I had not adopted are very simple, but I think it complicated.

AC Code:

Third question: 1055

The original Code:

The original code is too complicated the work the problem (after all just simulation questions.)

After reading skygao code, any subject I want to put before the complex ideas very upset, so simple even a topic I wasted so much time.

AC Code:

Today's topic has to complete the same question: I think the simple complicated subject.

Guess you like

Origin www.cnblogs.com/wangximing/p/11203437.html