結果

問題 No.18 うーさー暗号
ユーザー AreTrashAreTrash
提出日時 2016-04-16 09:16:59
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 918 ms
コンパイル使用メモリ 110,860 KB
実行使用メモリ 27,320 KB
最終ジャッジ日時 2024-04-15 02:10:10
合計ジャッジ時間 1,515 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
23,128 KB
testcase_01 AC 21 ms
25,528 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No18_1{
    public class Program{
        public static void Main(string[] args){
            var charArray = Console.ReadLine().ToCharArray();
            var length = charArray.Length;

            for(var i = 0; i < length; i++){
                charArray[i] -= (char) (i + 1);
                if(charArray[i] < 'A') charArray[i] += (char) 26;
            }

            foreach(var c in charArray){
                Console.Write(c);
            }

            Console.WriteLine();
        }
    }
}
0