結果

問題 No.2049 POP
ユーザー マサ
提出日時 2022-09-07 21:51:08
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 3,226 ms
コンパイル使用メモリ 74,152 KB
実行使用メモリ 42,012 KB
最終ジャッジ日時 2024-11-23 12:57:56
合計ジャッジ時間 5,629 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] strAry = sc.next().split("");
		
		for (int i = 1; i < n-1; i++) {
			System.out.print(strAry[i]);
		}
	
		sc.close();
	}
}
0