結果

問題 No.1020 Reverse
ユーザー ks2mks2m
提出日時 2020-04-10 21:22:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 447 bytes
コンパイル時間 2,240 ms
コンパイル使用メモリ 77,304 KB
実行使用メモリ 52,836 KB
最終ジャッジ日時 2023-10-13 21:12:36
合計ジャッジ時間 4,702 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
49,720 KB
testcase_01 AC 47 ms
49,752 KB
testcase_02 AC 49 ms
49,592 KB
testcase_03 WA -
testcase_04 AC 48 ms
50,224 KB
testcase_05 AC 48 ms
50,048 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 89 ms
52,448 KB
testcase_09 AC 96 ms
52,228 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 106 ms
52,300 KB
testcase_13 AC 101 ms
52,424 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 105 ms
52,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int k = Integer.parseInt(sa[1]);
		String s = br.readLine();
		br.close();

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