結果

問題 No.327 アルファベット列
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 21:30:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 176 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 3,662 ms
コンパイル使用メモリ 76,964 KB
実行使用メモリ 42,664 KB
最終ジャッジ日時 2024-05-02 02:36:03
合計ジャッジ時間 13,993 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
40,924 KB
testcase_01 AC 137 ms
41,324 KB
testcase_02 AC 168 ms
42,348 KB
testcase_03 AC 168 ms
42,380 KB
testcase_04 AC 164 ms
42,228 KB
testcase_05 AC 171 ms
42,200 KB
testcase_06 AC 163 ms
42,252 KB
testcase_07 AC 164 ms
42,364 KB
testcase_08 AC 154 ms
41,940 KB
testcase_09 AC 171 ms
42,360 KB
testcase_10 AC 170 ms
42,068 KB
testcase_11 AC 151 ms
41,984 KB
testcase_12 AC 166 ms
42,148 KB
testcase_13 AC 151 ms
41,712 KB
testcase_14 AC 166 ms
42,564 KB
testcase_15 AC 152 ms
42,048 KB
testcase_16 AC 164 ms
42,300 KB
testcase_17 AC 164 ms
42,164 KB
testcase_18 AC 165 ms
42,200 KB
testcase_19 AC 162 ms
42,244 KB
testcase_20 AC 151 ms
41,896 KB
testcase_21 AC 169 ms
42,496 KB
testcase_22 AC 167 ms
42,336 KB
testcase_23 AC 172 ms
42,340 KB
testcase_24 AC 172 ms
42,240 KB
testcase_25 AC 165 ms
42,372 KB
testcase_26 AC 176 ms
42,664 KB
testcase_27 AC 168 ms
42,180 KB
testcase_28 AC 168 ms
42,272 KB
testcase_29 AC 170 ms
42,408 KB
testcase_30 AC 165 ms
42,104 KB
testcase_31 AC 164 ms
42,208 KB
testcase_32 AC 164 ms
42,368 KB
testcase_33 AC 151 ms
42,012 KB
testcase_34 AC 165 ms
42,168 KB
testcase_35 AC 169 ms
42,208 KB
testcase_36 AC 164 ms
42,172 KB
testcase_37 AC 164 ms
42,240 KB
testcase_38 AC 160 ms
42,496 KB
testcase_39 AC 157 ms
41,884 KB
testcase_40 AC 167 ms
42,304 KB
testcase_41 AC 168 ms
42,368 KB
testcase_42 AC 161 ms
42,184 KB
testcase_43 AC 163 ms
42,304 KB
testcase_44 AC 164 ms
42,272 KB
testcase_45 AC 170 ms
42,100 KB
testcase_46 AC 170 ms
42,188 KB
testcase_47 AC 160 ms
42,376 KB
testcase_48 AC 163 ms
42,040 KB
testcase_49 AC 161 ms
42,292 KB
testcase_50 AC 162 ms
42,288 KB
testcase_51 AC 164 ms
42,104 KB
testcase_52 AC 165 ms
42,416 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