結果

問題 No.327 アルファベット列
ユーザー NetSeedNetSeed
提出日時 2015-12-27 00:46:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 632 bytes
コンパイル時間 3,019 ms
コンパイル使用メモリ 110,376 KB
実行使用メモリ 25,060 KB
最終ジャッジ日時 2023-10-19 11:03:33
合計ジャッジ時間 5,058 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
25,060 KB
testcase_01 AC 30 ms
25,060 KB
testcase_02 AC 30 ms
25,048 KB
testcase_03 AC 31 ms
25,048 KB
testcase_04 WA -
testcase_05 AC 31 ms
25,048 KB
testcase_06 WA -
testcase_07 AC 30 ms
25,048 KB
testcase_08 AC 30 ms
25,048 KB
testcase_09 AC 30 ms
25,048 KB
testcase_10 AC 31 ms
25,052 KB
testcase_11 AC 30 ms
25,052 KB
testcase_12 AC 30 ms
25,052 KB
testcase_13 AC 30 ms
25,052 KB
testcase_14 AC 31 ms
25,052 KB
testcase_15 AC 30 ms
25,052 KB
testcase_16 AC 30 ms
25,052 KB
testcase_17 AC 30 ms
25,052 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 WA -
testcase_26 RE -
testcase_27 RE -
testcase_28 WA -
testcase_29 RE -
testcase_30 WA -
testcase_31 AC 30 ms
25,048 KB
testcase_32 RE -
testcase_33 AC 30 ms
25,048 KB
testcase_34 AC 29 ms
25,048 KB
testcase_35 WA -
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 WA -
testcase_46 RE -
testcase_47 RE -
testcase_48 WA -
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
testcase_52 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
	class Program
	{
		private static readonly List<char> ConvertTable = Enumerable.Range(0x41, 26).Select(x => (char) x).ToList();
		static void Main(string[] args)
		{
			var n = long.Parse(Console.ReadLine());

			var buff = new List<char>();

			buff.Add(ConvertTable[(int)n%26]);
			ConvertTable.Insert(0, 'A');
			while ((n /= 26) != 0)
			{
				buff.Add(ConvertTable[(int) n%26]);
			}

			buff.Reverse();
			Console.WriteLine(buff.Aggregate(new StringBuilder(), (b, c) => b.Append(c)).ToString());

		}
	}
}
0