結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 180 ms
58,816 KB
testcase_01 AC 181 ms
58,860 KB
testcase_02 AC 177 ms
58,840 KB
testcase_03 AC 181 ms
58,872 KB
testcase_04 AC 178 ms
58,824 KB
testcase_05 AC 179 ms
58,836 KB
testcase_06 AC 176 ms
58,860 KB
testcase_07 AC 177 ms
58,856 KB
testcase_08 WA -
testcase_09 AC 184 ms
58,836 KB
testcase_10 WA -
testcase_11 AC 178 ms
58,848 KB
testcase_12 AC 178 ms
58,852 KB
testcase_13 WA -
testcase_14 AC 179 ms
58,840 KB
testcase_15 WA -
testcase_16 AC 175 ms
58,868 KB
testcase_17 AC 174 ms
58,840 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 180 ms
58,836 KB
testcase_31 AC 182 ms
58,860 KB
testcase_32 RE -
testcase_33 AC 182 ms
58,856 KB
testcase_34 AC 179 ms
58,808 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','T','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