結果

問題 No.2049 POP
ユーザー ks2m
提出日時 2022-08-21 12:45:40
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 2,383 ms
コンパイル使用メモリ 74,116 KB
実行使用メモリ 41,544 KB
最終ジャッジ日時 2024-10-10 05:44:36
合計ジャッジ時間 4,133 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String s = sc.next();
		sc.close();

		System.out.println(s.substring(1, n - 1));
	}
}
0