Preface : The journey is not long , If you can pass . There are not many yards , No insect, no spirit . Si is Xinjing , But I burst zero . Segment maintenance is fast , The tree jumps frequently . Number theory remainder system , Graph theory forward star . Countless competing reasoning , Nothing competes for labor . Big brother building leader , Super Yao Qizhi , Divine cloud : You are too strong .

morning 5:00 Woke up , I can't sleep at all

5:30, Toss and turn in bed and can't sleep , I had to get up and take a bath

8:30 Start the game , Not in good shape , A little sleepy

T1

A brief introduction to the topic : seek \(l,r\) Between modules \(n\) The maximum number of .

Just saw this problem , I didn't think so much , Call directly on the computer , Using a double loop nesting , After typing, look at the question carefully , Only then discovered

This is a math problem

Take a look at the data range \(r-l≤10^9\)

Um. , Must be \(O(1)\) Of course. .

consider , If \(r-l≥n\) The output \(n-1\)n

otherwise , Consider again \(l,r\) First mold \(n\) , Write it down as \(L,R\).

If \(R<L\) Obviously the maximum is \(n-1\).

Otherwise, \(R\) individual .

This question obviously shouldn't be wrong

T2

data structure , Inquire about + modify

In a stupid way

modify \(O(1)\), Inquire about \(O(nlogn)\)

Modify direct logarithmic modification , For inquiry 2 All over sort+1 A binary search

I spend most of my time looking for two points ( Finally, I found a wrong letter )

As a result, there is not much time behind

direct luogu Run up TLE

T3

Seeing a large string of words, I feel that this problem is not simple , Glancing at the title a few times , To do T4 了

Look at it after you come back , Discovery is an extremely disgusting thing

This is the big simulation

FIAL and OK Everything was very good , The key is ERR, For a long time

After the adjustment, I found that it was always wrong , At this time, there is still about 5,6 minute

No way out , You can only delete the typing table and leave it to fate

T4

Read the title a few times , Hit a violent , Time complexity .... Quite high

I've been thinking about how to optimize , Suddenly I thought of the linked list ( But I forgot how to play )

So I put it there , No matter the , Go fight T3

It's over T3 after , The exam is almost over , result , I am here T3 There are cheap hands (vscode sequelae ) Press one F5, I didn't save it T4......

The mentality at that time has collapsed , Don't want to move anything , The hard fought violence is gone , There are only three codes left ( There is also a watch ), It must be too late to hit again , I had to type another watch at last ......

After leaving the examination room, the whole person was stupid

summary

There are problems in the mentality and state of this exam ( Almost fell asleep in the bathroom )

This scene CSP It was the first game I participated in OI match , Maybe I care too much

The whole heart is highly nervous , Especially when the program is gone ......

however , Meditate in your heart : At least I passed the preliminary round , Many people haven't even passed the preliminaries

Just try your best

Pay more attention in the future

Calm down , Welcome the game with the best attitude

come on. !

【CSP-J 2021】 Summarize more related articles

  1. 【 travel 】CSP J/S 2019 travel

    J Group \(2:30\) Start , \(2:13\) Still in the hotel, I looked at my watch ... Run to the examination room . T1 Digital games Second cut . In the afternoon, a senior in a middle school said that linear basis could be used (%) T2 Public Transport Interchange Station With the idea of monotone queue , Second cut . T3 souvenir ...

  2. CSP J/S 2019 Masochism

    Travel notes of a konjac ~ Improvement group DAY1 Doesn't it mean that every exam has a check-in question Then I tm After reading the question three times, I just couldn't find a water question ( Am I too weak ) Can't , Harden your head to do T1 Violent writing ... Expected score 30pts therefore ... stay ...

  3. [ travel ]2020/CSP - S summary

    2020 / C S P − S total junction 2020/CSP - S summary 2020/CSP−S summary This year C S P CSP CSP Didn't do very well , It was steady C S P − J CSP-J CSP− ...

  4. emacs The examination room is short

    (set-background-color "gray15") (set-foreground-color "gray") ;; Set the color (global-set ...

  5. OI Record

    Here is konjaku xsl Of OI Record . 2017 2017.03.?? Begin to contact OI 2017.10.14 To participate in NOIP2017 Preliminary competition of popularization group , Stepping on the score line into the semi-finals 2017.11.11 To participate in NOIP2017 Popularization group ...

  6. noi linux 2.0 Experience

    One . cause Afternoon , I opened the noi The official website is ready to sign up csp j/s, Take a look at the display board on the official website :"noi linux 2.0 Release " I got excited .(9 month 1 Use from , That means csp ...

  7. Diary -「CSP 2019 J/S」 travel

    \(\text{Day 0}\) Test run , Overall, I feel pretty good , At least it's not like the tension in the first day of junior high school , After all, they are young and middle-aged players ( ? )          I slept well that night , Although it's for the first prize , But I still didn't give myself too many thought packs ...

  8. 2021 Niuke summer multi school training camp 3 J thinking

    Portal  J-Counting Triangles_2021 Niuke summer multi school training camp 3 (nowcoder.com) subject Goodeat finds an undirected complete graph ...

  9. J - Scarily interesting! URAL - 2021

    This year at Monsters University it is decided to arrange Scare Games. At the Games all campus gathe ...

  10. CSP 2021 travel

    \(\text{Day -INF}\) I saw it \(\text{SCP2021}\) Registration notice of , I thought the coach would let us sign up , I didn't care then -- Then after more than twenty days, the coach didn't mention the registration at all , Make me ...

Random recommendation

  1. WCF Learning journey —TCP Duplex mode ( The 21st )

    WCF Learning journey — Request and reply mode and one-way mode ( nineteen ) WCF Learning journey —HTTP Duplex mode ( twenty ) 5、 ... and .TCP Duplex mode In the last article we learned HTTP Duplex mode of , Let's learn about it today TCP Duplex mode of . In a base ...

  2. Java relevant

    1. Multithreading implementation method ? 1). Inherit Thread Class to implement multithreading 2). Realization Runnable Interface mode to realize multithreading 3). Use ExecutorService.Callable.Future Implement multiple threads that return results ...

  3. codeforces 495C. Treasure Problem solving report

    Topic link :http://codeforces.com/problemset/problem/495/C The title mean : Given a string of only three characters ( ')','(' and '#') Composed string , This character in each position ...

  4. windows to update npm

    Today I came across a project that needs to be updated npm Version of , Searched how to update npm Methods , Some people say it's a direct reload node,npm The version will be up to date , It's really impossible to make complaints about it. , If every update has to be so troublesome , I think there must be a better and simpler way , Last fruit ...

  5. OpenSSH Key management :RSA/DSA authentication ( Reprint )

    Many of us put excellent OpenSSH Used as ancient telnet and rsh An alternative to order ,OpenSSH It is not only secure but also encrypted . OpenSSH One of the more attractive features is that it can use a pair of complementary numbers ...

  6. XMLHttpRequest Send a request

    *open(method,url,async) *send(string)// In the use of get On request , There is no subject , All the information will be spelled in url among , So use send In brackets string Can be null ! Such as ...

  7. gulp Learning notes ( One )

    gulp  Is based on  Nodejs  Automatic task runner for , It can be done automatically javascript/coffee/sass/less/html/image/css And so on . Check . Merge . Compress . format . Browser Auto ...

  8. RabbitMQ Installation and java Use ( One )

    I have nothing to do recently , Sort out the basic knowledge , This installation 1.RabbitMQ The version is 3.6.10 2. The operating system is centOS 7 64 position   virtual machine IP:192.168.149.133 1. Install and update system environment dependencies yum ...

  9. bash Basic characteristics 2

    Command alias (alias) ()alias Show the current shell All command aliases available to the process : ()alias NAME='VALUE' Define an alias NAME, It's like executing an order value ()unlias Undo alias notes ...

  10. Linux &#39;XXXXXX&#39; &quot;is not in the sudoers file. This incident will be reported&quot; resolvent

    Add as follows : 1. Get into root Pattern su -  Be careful :su and - Enter the password of the current user 2. Add write permission chmod u+w /etc/sudoers 3. Add yourself to sudoers in gedit / ...