結果

問題 No.327 アルファベット列
ユーザー uafr_csuafr_cs
提出日時 2016-02-02 19:04:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 457 bytes
コンパイル時間 2,164 ms
コンパイル使用メモリ 74,712 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-04-16 08:00:15
合計ジャッジ時間 10,476 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
53,964 KB
testcase_01 AC 134 ms
54,352 KB
testcase_02 AC 136 ms
54,020 KB
testcase_03 AC 133 ms
54,108 KB
testcase_04 AC 134 ms
53,796 KB
testcase_05 AC 137 ms
53,956 KB
testcase_06 AC 136 ms
54,040 KB
testcase_07 AC 136 ms
53,952 KB
testcase_08 AC 133 ms
53,976 KB
testcase_09 AC 135 ms
54,056 KB
testcase_10 AC 133 ms
54,172 KB
testcase_11 AC 129 ms
40,996 KB
testcase_12 AC 130 ms
41,224 KB
testcase_13 AC 129 ms
41,032 KB
testcase_14 AC 129 ms
41,060 KB
testcase_15 AC 132 ms
41,144 KB
testcase_16 AC 128 ms
41,388 KB
testcase_17 AC 119 ms
40,092 KB
testcase_18 AC 134 ms
41,460 KB
testcase_19 AC 131 ms
40,956 KB
testcase_20 AC 129 ms
41,424 KB
testcase_21 AC 131 ms
41,116 KB
testcase_22 AC 135 ms
41,448 KB
testcase_23 AC 134 ms
41,268 KB
testcase_24 AC 132 ms
41,284 KB
testcase_25 AC 131 ms
41,696 KB
testcase_26 AC 118 ms
40,048 KB
testcase_27 AC 130 ms
41,236 KB
testcase_28 AC 134 ms
41,336 KB
testcase_29 AC 135 ms
41,212 KB
testcase_30 AC 132 ms
41,384 KB
testcase_31 AC 135 ms
41,576 KB
testcase_32 AC 133 ms
40,908 KB
testcase_33 AC 131 ms
41,256 KB
testcase_34 AC 131 ms
41,116 KB
testcase_35 AC 133 ms
41,236 KB
testcase_36 AC 131 ms
41,704 KB
testcase_37 AC 116 ms
40,112 KB
testcase_38 AC 116 ms
40,296 KB
testcase_39 AC 133 ms
41,344 KB
testcase_40 AC 130 ms
40,908 KB
testcase_41 AC 128 ms
40,908 KB
testcase_42 AC 129 ms
41,024 KB
testcase_43 AC 133 ms
41,432 KB
testcase_44 AC 132 ms
41,640 KB
testcase_45 AC 132 ms
41,444 KB
testcase_46 AC 132 ms
41,224 KB
testcase_47 AC 131 ms
41,100 KB
testcase_48 AC 131 ms
41,380 KB
testcase_49 AC 133 ms
41,296 KB
testcase_50 AC 134 ms
41,196 KB
testcase_51 AC 127 ms
41,068 KB
testcase_52 AC 128 ms
41,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		long rest = sc.nextLong() + 1;
		StringBuilder sb = new StringBuilder();
		do{
			rest--;
			
			sb.insert(0, ((char)('A' + (rest % 26))));
			rest /= 26;
		}while(rest > 0);
		
		System.out.print(sb.toString());
		
	}

}
0