結果

問題 No.18 うーさー暗号
ユーザー p_nixp_nix
提出日時 2018-01-27 17:17:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 515 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 103,804 KB
実行使用メモリ 22,520 KB
最終ジャッジ日時 2023-09-21 12:58:41
合計ジャッジ時間 3,585 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
20,424 KB
testcase_01 AC 49 ms
22,416 KB
testcase_02 AC 49 ms
22,520 KB
testcase_03 AC 50 ms
22,484 KB
testcase_04 AC 48 ms
20,400 KB
testcase_05 AC 48 ms
22,424 KB
testcase_06 AC 48 ms
20,380 KB
testcase_07 AC 48 ms
20,444 KB
testcase_08 AC 49 ms
20,432 KB
testcase_09 AC 49 ms
20,444 KB
testcase_10 AC 50 ms
20,472 KB
testcase_11 AC 49 ms
20,432 KB
testcase_12 AC 48 ms
22,448 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace prob018
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string ret = "";
            int tmp;
           
            for (int i = 0; i < s.Length; i++)
            {
                tmp= s[i] - (i+1);
                while (tmp<65)
                {
                    tmp = tmp + 26;
                }
                ret += (char)tmp;
            }
            Console.WriteLine(ret);
        }
    }
}
0