Previous Next
0 / 15
Module DEMO-33-73DEMO-OOP-33

Library Position Finder

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read three titles and a raw index. Print the title at that index and handle invalid or out-of-range indexes explicitly.

Input Format

Input is given as whitespace-separated raw tokens exactly in the order described by the problem statement.

Output Format

Print the exact success report or exact error message required by the problem.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
OOP
Java
DB
1
Title: Java
Input: first title = "OOP", second title = "Java", third title = "DB", requested index = "1".
Derivation: titles = ['OOP', 'Java', 'DB'] and index = 1 | titles[1] = "Java" | "Title: " + "Java" = "Title: Java".
Output:
Title: Java
Sample #2
Public sample
AI
Math
Cloud
0
Title: AI
Input: first title = "AI", second title = "Math", third title = "Cloud", requested index = "0".
Derivation: titles = ['AI', 'Math', 'Cloud'] and index = 0 | titles[0] = "AI" | "Title: " + "AI" = "Title: AI".
Output:
Title: AI

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings