結果

問題 No.1217 せしすせそ
ユーザー ks2mks2m
提出日時 2020-09-04 21:41:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 156 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 3,148 ms
コンパイル使用メモリ 76,356 KB
実行使用メモリ 42,448 KB
最終ジャッジ日時 2024-05-04 21:54:56
合計ジャッジ時間 5,629 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
42,044 KB
testcase_01 AC 155 ms
42,316 KB
testcase_02 AC 155 ms
42,416 KB
testcase_03 AC 155 ms
42,212 KB
testcase_04 AC 156 ms
42,324 KB
testcase_05 AC 141 ms
41,824 KB
testcase_06 AC 154 ms
42,340 KB
testcase_07 AC 153 ms
42,100 KB
testcase_08 AC 153 ms
42,416 KB
testcase_09 AC 154 ms
42,296 KB
testcase_10 AC 153 ms
42,172 KB
testcase_11 AC 152 ms
42,264 KB
testcase_12 AC 152 ms
42,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		sc.close();

		String t = "abcdefghijklmnopqrstuvwxyz";
		for (int i = 0; i < s.length(); i++) {
			if (s.charAt(i) != t.charAt(i)) {
				System.out.println(t.charAt(i) + "to" + s.charAt(i));
				return;
			}
		}
	}
}
0