結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 167 ms
58,876 KB
testcase_01 AC 166 ms
58,852 KB
testcase_02 AC 162 ms
58,840 KB
testcase_03 AC 166 ms
58,852 KB
testcase_04 AC 170 ms
58,844 KB
testcase_05 AC 166 ms
58,876 KB
testcase_06 AC 166 ms
58,820 KB
testcase_07 AC 168 ms
58,852 KB
testcase_08 AC 170 ms
58,860 KB
testcase_09 AC 169 ms
58,840 KB
testcase_10 AC 168 ms
58,856 KB
testcase_11 AC 166 ms
58,876 KB
testcase_12 AC 170 ms
58,860 KB
testcase_13 AC 171 ms
58,884 KB
testcase_14 AC 168 ms
58,860 KB
testcase_15 AC 170 ms
58,848 KB
testcase_16 AC 169 ms
58,848 KB
testcase_17 AC 167 ms
58,860 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 166 ms
58,840 KB
testcase_31 AC 169 ms
58,848 KB
testcase_32 RE -
testcase_33 AC 167 ms
58,856 KB
testcase_34 AC 169 ms
56,908 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