結果

問題 No.327 アルファベット列
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 21:20:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 3,993 ms
コンパイル使用メモリ 74,100 KB
実行使用メモリ 59,268 KB
最終ジャッジ日時 2023-08-14 14:30:15
合計ジャッジ時間 14,594 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 176 ms
57,196 KB
testcase_03 AC 178 ms
57,144 KB
testcase_04 AC 174 ms
57,108 KB
testcase_05 AC 181 ms
56,940 KB
testcase_06 WA -
testcase_07 AC 177 ms
56,596 KB
testcase_08 AC 177 ms
56,700 KB
testcase_09 AC 176 ms
57,132 KB
testcase_10 AC 175 ms
54,892 KB
testcase_11 AC 177 ms
57,184 KB
testcase_12 AC 176 ms
57,044 KB
testcase_13 AC 176 ms
57,068 KB
testcase_14 AC 174 ms
56,968 KB
testcase_15 AC 175 ms
57,124 KB
testcase_16 AC 173 ms
56,536 KB
testcase_17 AC 174 ms
57,176 KB
testcase_18 AC 174 ms
57,052 KB
testcase_19 AC 173 ms
56,724 KB
testcase_20 AC 172 ms
56,852 KB
testcase_21 AC 180 ms
57,020 KB
testcase_22 AC 179 ms
56,832 KB
testcase_23 AC 176 ms
57,200 KB
testcase_24 AC 174 ms
56,936 KB
testcase_25 AC 175 ms
57,028 KB
testcase_26 AC 181 ms
56,800 KB
testcase_27 AC 177 ms
58,876 KB
testcase_28 AC 174 ms
56,744 KB
testcase_29 AC 176 ms
56,976 KB
testcase_30 AC 175 ms
56,780 KB
testcase_31 AC 177 ms
56,756 KB
testcase_32 AC 174 ms
56,996 KB
testcase_33 AC 173 ms
57,020 KB
testcase_34 AC 174 ms
56,860 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます

ソースコード

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();
		String s = "";
		s += (char) ('A' + (n % 26));
		n /= 26;
		while (n > 26) {
			if (n % 26 > 0) {
				s = (char) ('A' + (n % 26) - 1) + s;
			}
			n /= 26;
		}
		s = (char) ('A' + (n % 27) - 1) + s;
		System.out.println(s);
	}
}
0