結果

問題 No.327 アルファベット列
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 21:30:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 3,781 ms
コンパイル使用メモリ 76,332 KB
実行使用メモリ 58,832 KB
最終ジャッジ日時 2023-08-14 14:32:06
合計ジャッジ時間 14,460 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,244 KB
testcase_01 AC 126 ms
55,760 KB
testcase_02 AC 158 ms
56,700 KB
testcase_03 AC 162 ms
56,660 KB
testcase_04 AC 162 ms
58,832 KB
testcase_05 AC 160 ms
56,480 KB
testcase_06 AC 158 ms
56,848 KB
testcase_07 AC 158 ms
56,440 KB
testcase_08 AC 160 ms
56,692 KB
testcase_09 AC 158 ms
57,044 KB
testcase_10 AC 162 ms
56,704 KB
testcase_11 AC 158 ms
56,736 KB
testcase_12 AC 159 ms
56,788 KB
testcase_13 AC 162 ms
56,856 KB
testcase_14 AC 162 ms
56,748 KB
testcase_15 AC 158 ms
56,708 KB
testcase_16 AC 161 ms
56,800 KB
testcase_17 AC 160 ms
56,852 KB
testcase_18 AC 160 ms
56,864 KB
testcase_19 AC 160 ms
56,944 KB
testcase_20 AC 160 ms
56,800 KB
testcase_21 AC 159 ms
56,988 KB
testcase_22 AC 160 ms
56,804 KB
testcase_23 AC 159 ms
56,556 KB
testcase_24 AC 161 ms
57,088 KB
testcase_25 AC 159 ms
57,088 KB
testcase_26 AC 158 ms
56,616 KB
testcase_27 AC 159 ms
56,488 KB
testcase_28 AC 159 ms
56,868 KB
testcase_29 AC 161 ms
56,700 KB
testcase_30 AC 160 ms
56,864 KB
testcase_31 AC 158 ms
56,828 KB
testcase_32 AC 160 ms
56,744 KB
testcase_33 AC 160 ms
56,444 KB
testcase_34 AC 158 ms
56,520 KB
testcase_35 AC 164 ms
56,504 KB
testcase_36 AC 159 ms
56,956 KB
testcase_37 AC 159 ms
56,616 KB
testcase_38 AC 157 ms
56,500 KB
testcase_39 AC 159 ms
56,692 KB
testcase_40 AC 157 ms
56,968 KB
testcase_41 AC 162 ms
56,852 KB
testcase_42 AC 159 ms
56,812 KB
testcase_43 AC 159 ms
56,888 KB
testcase_44 AC 159 ms
58,712 KB
testcase_45 AC 160 ms
56,944 KB
testcase_46 AC 160 ms
56,716 KB
testcase_47 AC 158 ms
57,084 KB
testcase_48 AC 160 ms
56,860 KB
testcase_49 AC 161 ms
56,828 KB
testcase_50 AC 159 ms
57,004 KB
testcase_51 AC 157 ms
56,856 KB
testcase_52 AC 160 ms
56,984 KB
権限があれば一括ダウンロードができます

ソースコード

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();
		System.out.println(get(n));
	}
	public static String get(long n){
		if(n < 26){
			return ""+ (char)('A' + (n % 26));
		}
		return get(n/26 - 1) + (char)('A' + (n % 26));
	}
}
0