結果

問題 No.327 アルファベット列
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 21:20:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 3,289 ms
コンパイル使用メモリ 76,100 KB
実行使用メモリ 43,392 KB
最終ジャッジ日時 2024-05-02 02:34:21
合計ジャッジ時間 13,117 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 152 ms
42,960 KB
testcase_03 AC 139 ms
43,004 KB
testcase_04 AC 146 ms
42,984 KB
testcase_05 AC 156 ms
42,944 KB
testcase_06 WA -
testcase_07 AC 158 ms
43,124 KB
testcase_08 AC 161 ms
43,012 KB
testcase_09 AC 138 ms
42,944 KB
testcase_10 AC 147 ms
42,816 KB
testcase_11 AC 164 ms
42,940 KB
testcase_12 AC 151 ms
42,972 KB
testcase_13 AC 150 ms
42,808 KB
testcase_14 AC 158 ms
42,852 KB
testcase_15 AC 159 ms
43,356 KB
testcase_16 AC 138 ms
42,980 KB
testcase_17 AC 168 ms
43,012 KB
testcase_18 AC 144 ms
43,192 KB
testcase_19 AC 148 ms
43,260 KB
testcase_20 AC 159 ms
43,052 KB
testcase_21 AC 146 ms
43,300 KB
testcase_22 AC 148 ms
43,292 KB
testcase_23 AC 153 ms
43,132 KB
testcase_24 AC 148 ms
43,188 KB
testcase_25 AC 155 ms
42,976 KB
testcase_26 AC 156 ms
43,392 KB
testcase_27 AC 158 ms
42,876 KB
testcase_28 AC 137 ms
43,128 KB
testcase_29 AC 147 ms
43,280 KB
testcase_30 AC 160 ms
42,716 KB
testcase_31 AC 151 ms
43,120 KB
testcase_32 AC 151 ms
42,956 KB
testcase_33 AC 158 ms
42,852 KB
testcase_34 AC 138 ms
42,708 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		long n = sc.nextLong();
		String s = "";
		s += (char) ('A' + (n % 26));
		n /= 26;
		while (n > 26) {
			if (n % 26 > 0) {
				s = (char) ('A' + (n % 26) - 1) + s;
			}
			n /= 26;
		}
		s = (char) ('A' + (n % 27) - 1) + s;
		System.out.println(s);
	}
}
0