結果

問題 No.2049 POP
ユーザー ks2mks2m
提出日時 2022-08-21 12:45:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 2,022 ms
コンパイル使用メモリ 76,168 KB
実行使用メモリ 41,464 KB
最終ジャッジ日時 2024-04-18 12:32:31
合計ジャッジ時間 4,229 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,364 KB
testcase_01 AC 125 ms
41,232 KB
testcase_02 AC 127 ms
41,356 KB
testcase_03 AC 123 ms
41,300 KB
testcase_04 AC 123 ms
40,852 KB
testcase_05 AC 129 ms
40,960 KB
testcase_06 AC 129 ms
41,216 KB
testcase_07 AC 127 ms
41,464 KB
testcase_08 AC 125 ms
41,012 KB
testcase_09 AC 124 ms
41,212 KB
testcase_10 AC 117 ms
41,276 KB
testcase_11 AC 122 ms
41,068 KB
権限があれば一括ダウンロードができます

ソースコード

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