結果

問題 No.327 アルファベット列
ユーザー nCk_cvnCk_cv
提出日時 2016-02-04 21:14:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 409 bytes
コンパイル時間 2,178 ms
コンパイル使用メモリ 75,928 KB
実行使用メモリ 42,724 KB
最終ジャッジ日時 2024-04-16 08:01:22
合計ジャッジ時間 12,111 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
42,556 KB
testcase_01 AC 145 ms
41,976 KB
testcase_02 AC 158 ms
42,460 KB
testcase_03 AC 161 ms
42,228 KB
testcase_04 AC 160 ms
42,368 KB
testcase_05 AC 159 ms
42,324 KB
testcase_06 AC 158 ms
42,464 KB
testcase_07 AC 159 ms
42,388 KB
testcase_08 AC 158 ms
42,324 KB
testcase_09 AC 157 ms
42,468 KB
testcase_10 AC 163 ms
42,540 KB
testcase_11 AC 161 ms
42,196 KB
testcase_12 AC 161 ms
42,472 KB
testcase_13 AC 159 ms
42,484 KB
testcase_14 AC 159 ms
42,532 KB
testcase_15 AC 165 ms
42,636 KB
testcase_16 AC 159 ms
42,392 KB
testcase_17 AC 160 ms
42,260 KB
testcase_18 AC 160 ms
42,536 KB
testcase_19 AC 158 ms
42,344 KB
testcase_20 AC 146 ms
42,084 KB
testcase_21 AC 145 ms
41,968 KB
testcase_22 AC 159 ms
42,232 KB
testcase_23 AC 158 ms
42,288 KB
testcase_24 AC 161 ms
42,520 KB
testcase_25 AC 158 ms
42,724 KB
testcase_26 AC 160 ms
42,372 KB
testcase_27 AC 161 ms
42,268 KB
testcase_28 AC 160 ms
42,180 KB
testcase_29 AC 161 ms
42,536 KB
testcase_30 AC 160 ms
42,512 KB
testcase_31 AC 162 ms
42,260 KB
testcase_32 AC 160 ms
42,380 KB
testcase_33 AC 162 ms
42,468 KB
testcase_34 AC 160 ms
42,228 KB
testcase_35 AC 173 ms
42,396 KB
testcase_36 AC 160 ms
42,300 KB
testcase_37 AC 161 ms
42,580 KB
testcase_38 AC 166 ms
42,340 KB
testcase_39 AC 161 ms
42,428 KB
testcase_40 AC 157 ms
42,540 KB
testcase_41 AC 155 ms
42,596 KB
testcase_42 AC 160 ms
42,636 KB
testcase_43 AC 161 ms
42,344 KB
testcase_44 AC 159 ms
42,300 KB
testcase_45 AC 162 ms
42,244 KB
testcase_46 AC 162 ms
42,676 KB
testcase_47 AC 169 ms
42,408 KB
testcase_48 AC 159 ms
42,468 KB
testcase_49 AC 162 ms
42,400 KB
testcase_50 AC 162 ms
42,628 KB
testcase_51 AC 159 ms
42,524 KB
testcase_52 AC 162 ms
42,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.io.*;
 
public class Main {
	static int[] ret = new int[3];
	static int[] k;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long c = sc.nextLong()+1;
		
		String ans = "";
        while(c > 0){
            c--;
            ans = (char)(c % 26 + 'A')+ans;
            c/=26;
        }
        System.out.println(ans);
	}
}
0