oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

railway Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

notice.html

For all subtasks, 1 ≤ N ≤ 100 000, 1 ≤ Q ≤ 100 000.

Subtask 1 (27%): Each city is connected by at most 2 trains.

Subtask 2 (22%): 1 ≤ N ≤ 10 000, 1 ≤ Q ≤ 10 000.

Subtask 3 (51%): No further constraints.

Subtask 4 (0%): Sample Testcases.

1-railway-en.pdf

Your browser does not support embedded PDF files. Please download the PDF instead.

Tags

CPSPC 2004, Graph Theory

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
127101s32MBMinimum
222111s32MBMinimum
351311s32MBMinimum
4011s32MBMinimum

Judge Compile Command

g++-8 ans.cpp -o railway -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.