結果
問題 | No.18 うーさー暗号 |
ユーザー | NetSeed |
提出日時 | 2016-05-10 21:25:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 5,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 2,547 ms |
コンパイル使用メモリ | 101,572 KB |
実行使用メモリ | 23,740 KB |
最終ジャッジ日時 | 2023-09-21 12:17:46 |
合計ジャッジ時間 | 4,279 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
21,652 KB |
testcase_01 | AC | 57 ms
19,720 KB |
testcase_02 | AC | 56 ms
21,676 KB |
testcase_03 | AC | 57 ms
23,668 KB |
testcase_04 | AC | 57 ms
21,672 KB |
testcase_05 | AC | 57 ms
23,740 KB |
testcase_06 | AC | 57 ms
21,660 KB |
testcase_07 | AC | 57 ms
21,688 KB |
testcase_08 | AC | 57 ms
21,812 KB |
testcase_09 | AC | 58 ms
21,692 KB |
testcase_10 | AC | 57 ms
21,564 KB |
testcase_11 | AC | 57 ms
23,716 KB |
testcase_12 | AC | 56 ms
21,884 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; using System.Text; namespace TestBench { internal class Program { internal static void Main() { var array = Enumerable.Range(0x41, 26).Select(x => (char) x).ToArray(); Console.WriteLine(Console.ReadLine().Select((c, i) => new {value = c - 0x41, offset = (i + 1)%26}) .Select(x => x.value - x.offset).Select(x => x < 0 ? 26 + x : x).Select(x => array[x]) .Aggregate(new StringBuilder(), (bld, c) => bld.Append(c), bld => bld.ToString())); } } }