結果

問題 No.1217 せしすせそ
ユーザー Ryo MiyagiRyo Miyagi
提出日時 2020-09-21 16:58:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 2,412 ms
コンパイル使用メモリ 86,468 KB
実行使用メモリ 55,028 KB
最終ジャッジ日時 2024-06-24 11:46:45
合計ジャッジ時間 5,170 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
55,028 KB
testcase_01 AC 154 ms
42,356 KB
testcase_02 AC 141 ms
42,136 KB
testcase_03 AC 156 ms
42,152 KB
testcase_04 AC 155 ms
42,312 KB
testcase_05 AC 155 ms
42,416 KB
testcase_06 AC 142 ms
42,212 KB
testcase_07 AC 157 ms
42,316 KB
testcase_08 AC 157 ms
42,364 KB
testcase_09 AC 155 ms
42,392 KB
testcase_10 AC 155 ms
42,368 KB
testcase_11 AC 157 ms
42,300 KB
testcase_12 AC 156 ms
42,288 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