結果

問題 No.18 うーさー暗号
ユーザー wowilsonwowilson
提出日時 2016-10-07 19:47:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 450 bytes
コンパイル時間 3,540 ms
コンパイル使用メモリ 105,064 KB
実行使用メモリ 23,520 KB
最終ジャッジ日時 2023-09-21 12:29:51
合計ジャッジ時間 3,669 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
21,432 KB
testcase_01 AC 51 ms
23,520 KB
testcase_02 AC 51 ms
21,548 KB
testcase_03 AC 52 ms
21,472 KB
testcase_04 AC 51 ms
21,464 KB
testcase_05 AC 50 ms
21,396 KB
testcase_06 AC 51 ms
21,408 KB
testcase_07 AC 51 ms
21,460 KB
testcase_08 AC 52 ms
21,532 KB
testcase_09 AC 52 ms
23,496 KB
testcase_10 AC 50 ms
21,616 KB
testcase_11 AC 50 ms
21,420 KB
testcase_12 AC 51 ms
21,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

namespace Yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var line = Console.ReadLine().Select(
                (x, index) => (int)x + ((index + 1) * -1));

            var str = line.Select(x => x < 65 ? (char)(90 - Math.Abs(64 - x) % 26) : (char)x);
            foreach (var s in str)
            {
                Console.Write(s);
            }
        }
    }
}
0