結果

問題 No.1217 せしすせそ
ユーザー ks2mks2m
提出日時 2020-09-04 21:41:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 2,877 ms
コンパイル使用メモリ 73,640 KB
実行使用メモリ 58,992 KB
最終ジャッジ日時 2023-08-17 15:15:52
合計ジャッジ時間 4,854 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
56,920 KB
testcase_01 AC 141 ms
56,852 KB
testcase_02 AC 142 ms
56,892 KB
testcase_03 AC 138 ms
56,680 KB
testcase_04 AC 139 ms
58,992 KB
testcase_05 AC 142 ms
57,060 KB
testcase_06 AC 141 ms
56,776 KB
testcase_07 AC 141 ms
56,940 KB
testcase_08 AC 140 ms
56,864 KB
testcase_09 AC 139 ms
56,840 KB
testcase_10 AC 140 ms
56,532 KB
testcase_11 AC 140 ms
56,992 KB
testcase_12 AC 140 ms
56,952 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