結果

問題 No.327 アルファベット列
ユーザー 37zigen37zigen
提出日時 2016-03-22 16:08:09
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 560 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 76,220 KB
実行使用メモリ 42,660 KB
最終ジャッジ日時 2024-10-01 12:56:37
合計ジャッジ時間 10,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
42,432 KB
testcase_01 AC 128 ms
42,072 KB
testcase_02 AC 134 ms
41,864 KB
testcase_03 AC 142 ms
42,108 KB
testcase_04 AC 130 ms
41,800 KB
testcase_05 AC 139 ms
42,124 KB
testcase_06 AC 138 ms
42,124 KB
testcase_07 AC 141 ms
42,660 KB
testcase_08 AC 137 ms
42,168 KB
testcase_09 AC 138 ms
42,512 KB
testcase_10 AC 137 ms
42,340 KB
testcase_11 AC 126 ms
41,944 KB
testcase_12 AC 146 ms
42,420 KB
testcase_13 AC 140 ms
42,604 KB
testcase_14 AC 137 ms
42,368 KB
testcase_15 AC 122 ms
41,776 KB
testcase_16 AC 139 ms
42,440 KB
testcase_17 AC 130 ms
42,104 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 AC 127 ms
41,984 KB
testcase_31 AC 133 ms
42,544 KB
testcase_32 RE -
testcase_33 AC 131 ms
42,336 KB
testcase_34 AC 138 ms
42,440 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 #

package yukicoder327;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		char[] f={'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'};
		
//		26characters;abcdefghijklmnopqrstuvwxyz
//26進数に変換すればいい!
		String ans="";
//		if(n==0){
//			System.out.println(f[0]);
//			System.exit(0);
//		}
		while(n>=0){
			int a=n%26;
			n=(n-a)/26-1;
			ans=f[a]+ans;
		}
		System.out.println(ans);
	}
}
0