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

openclose Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

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

openclose.html

Problem Description

"Open close open open open close open open open close open open...?"

"Close."

"Close open close close close open close close open close close...?"

"Open."

Implementation

You should submit a file that implements the following procedure:

string openorclose(int N, string *Q)
N: The number of words.
Q: N words, "open" or "close".
Returns: The answer, "open" or "close".

Tags

String Processing, Ad Hoc, Creative, Math

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
110011s32MBMinimum

Attachments

Attachment Filesize Last Updated
openclose.cpp126B8 Sep 2014, 12:30:30

Judge Compile Command

g++-8 grader.cpp -o openclose -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.