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

lazysponge Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

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

lazysponge.html

Spongebob fails at counting. He has a list of numbers but only wants to know the value of the xth number.

Input

The first line of input is a 2 integer, n and x.
n represents the number of numbers in the list and 0 ≤ n ≤ 50000.
x is the position of the number spongebob wants to know.
The following line contains n space-separated numbers.

Output

Print the xth number in the list Spongebob has.

Sample Input

5 2
1 4 6 2 9

Sample Output

4

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o lazysponge -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.