No.2049 POP
レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 249
作問者 :
PCTprobability
/ テスター :
butsurizuki
タグ : / 解いたユーザー数 249
作問者 :
PCTprobability
/ テスター :
butsurizuki
問題文最終更新日: 2022-08-21 03:52:10
English (AI translation)
POP
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
NPCA 合宿コンテスト
(順位表)
の他の問題:
Problem Statement
You are given an integer $N$ and a string $S$ of length $N$ consisting of lowercase English letters.
Print the string obtained by removing the first and last characters of $S$.
Constraints
- $N$ is an integer
- $3 \le N \le 100$
- $|S|=N$
- $S$ is a string consisting of lowercase English letters
Input
$N$ $S$
Output
Print the answer.
Sample
Sample 1
Input
3 pop
Output
o
Print the string o, obtained by removing the first p and the last p of POP.
Sample 2
Input
16 nadatrainingcamp
Output
adatrainingcam
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。