結果

問題 No.1217 せしすせそ
ユーザー rymg111rymg111
提出日時 2020-09-21 18:09:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 2,214 ms
コンパイル使用メモリ 73,572 KB
実行使用メモリ 56,984 KB
最終ジャッジ日時 2023-09-06 17:24:01
合計ジャッジ時間 4,763 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
56,736 KB
testcase_01 AC 139 ms
56,812 KB
testcase_02 AC 140 ms
56,848 KB
testcase_03 AC 144 ms
56,668 KB
testcase_04 AC 142 ms
56,716 KB
testcase_05 AC 140 ms
54,952 KB
testcase_06 AC 141 ms
56,984 KB
testcase_07 AC 142 ms
56,768 KB
testcase_08 AC 144 ms
56,824 KB
testcase_09 AC 143 ms
56,828 KB
testcase_10 AC 140 ms
56,916 KB
testcase_11 AC 142 ms
56,472 KB
testcase_12 AC 141 ms
56,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		char[] text = input.next().toCharArray();
		for (int i = 0; i < text.length; i++) {
			if (text[i] != 'a' + i) {
				System.out.println((char)('a' + i) + "to" + text[i]);
			}
		}
	}
}
0