結果

問題 No.2034 Anti Lexicography
ユーザー bluemeganebluemegane
提出日時 2022-08-12 22:19:45
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 403 bytes
コンパイル時間 3,581 ms
コンパイル使用メモリ 108,812 KB
実行使用メモリ 24,192 KB
最終ジャッジ日時 2023-10-24 10:30:12
合計ジャッジ時間 4,823 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System.Text;
using System;

public class Hello
{
    static void Main()
    {
        Console.ReadLine();
        var s = Console.ReadLine().Trim();
        var sb = new StringBuilder();

        foreach (var x in s) sb.Append(getC(x));
        Console.WriteLine(sb);
    }
    static char getC(char t)
    {
        var p = t - 'a';
        var res = (char)('z' - p);
        return res;
    }
}
0