結果

問題 No.327 アルファベット列
ユーザー spaciaspacia
提出日時 2016-06-08 16:17:23
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 530 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 76,356 KB
実行使用メモリ 55,908 KB
最終ジャッジ日時 2024-04-17 09:47:18
合計ジャッジ時間 10,188 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
41,340 KB
testcase_01 AC 121 ms
41,600 KB
testcase_02 AC 127 ms
41,208 KB
testcase_03 AC 129 ms
41,284 KB
testcase_04 RE -
testcase_05 AC 120 ms
40,408 KB
testcase_06 RE -
testcase_07 AC 127 ms
41,592 KB
testcase_08 AC 125 ms
41,428 KB
testcase_09 AC 126 ms
41,192 KB
testcase_10 AC 127 ms
41,440 KB
testcase_11 AC 133 ms
41,440 KB
testcase_12 AC 130 ms
41,484 KB
testcase_13 AC 135 ms
41,432 KB
testcase_14 AC 130 ms
41,560 KB
testcase_15 AC 125 ms
41,436 KB
testcase_16 AC 128 ms
41,376 KB
testcase_17 AC 111 ms
41,532 KB
testcase_18 AC 125 ms
41,280 KB
testcase_19 AC 123 ms
41,436 KB
testcase_20 AC 115 ms
41,468 KB
testcase_21 AC 126 ms
41,468 KB
testcase_22 AC 126 ms
41,136 KB
testcase_23 AC 127 ms
41,332 KB
testcase_24 AC 125 ms
41,464 KB
testcase_25 AC 121 ms
40,408 KB
testcase_26 AC 128 ms
41,436 KB
testcase_27 AC 128 ms
41,252 KB
testcase_28 AC 114 ms
41,212 KB
testcase_29 AC 113 ms
41,216 KB
testcase_30 RE -
testcase_31 AC 123 ms
41,536 KB
testcase_32 AC 124 ms
41,412 KB
testcase_33 AC 122 ms
41,288 KB
testcase_34 AC 128 ms
41,436 KB
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
testcase_52 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(solve(sc.nextLong()));

		sc.close();

	}

	public static String solve (long n) {
		String[] alp = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
		String ret = alp[(int)(n % 26)];

		n /= 26;

		if (n == 0) return ret;

		while (n != 0) {
			ret = alp[((int)(n % 26)) - 1] + ret;
			n /= 26;
		}

		return ret;
	}

}
0